[Zodb-checkins] CVS: ZODB3 - setup.py:1.32

Fred L. Drake, Jr. fred@zope.com
Tue, 7 Jan 2003 10:20:44 -0500


Update of /cvs-repository/ZODB3
In directory cvs.zope.org:/tmp/cvs-serv28336

Modified Files:
	setup.py 
Log Message:
Update the list of files that need to be copied for ZConfig.


=== ZODB3/setup.py 1.31 => 1.32 ===
--- ZODB3/setup.py:1.31	Fri Jan  3 17:50:40 2003
+++ ZODB3/setup.py	Tue Jan  7 10:20:40 2003
@@ -166,14 +166,20 @@
                ]
 
 def copy_conf_files(cmd, outputbase):
-    inputdir = os.path.join("ZConfig", "tests", "input")
-    outputdir = os.path.join(outputbase, inputdir)
-    if not os.path.exists(outputdir):
-        dir_util.mkpath(outputdir)
-    files = (glob.glob(os.path.join(inputdir, "*.conf"))
-             + glob.glob(os.path.join(inputdir, "*.xml")))
-    for fn in files:
-        cmd.copy_file(fn, os.path.join(outputbase, fn))
+    for inputdir in [
+        os.path.join("ZConfig", "tests", "input"),
+        os.path.join("ZConfig", "tests", "library"),
+        os.path.join("ZConfig", "tests", "library", "thing"),
+        os.path.join("ZConfig", "tests", "library", "thing", "ext"),
+        os.path.join("ZConfig", "tests", "library", "widget"),
+        ]:
+        outputdir = os.path.join(outputbase, inputdir)
+        if not os.path.exists(outputdir):
+            dir_util.mkpath(outputdir)
+        files = []
+        for pattern in ("*.conf", "*.xml", "*.txt"):
+            for fn in glob.glob(os.path.join(inputdir, pattern)):
+                cmd.copy_file(fn, os.path.join(outputbase, fn))
 
     fn = os.path.join("ZODB", "config.xml")
     cmd.copy_file(fn, os.path.join(outputbase, fn))