[Zodb-checkins] CVS: ZODB4 - setup.py:1.9

Fred L. Drake, Jr. fred@zope.com
Tue, 7 Jan 2003 18:32:27 -0500


Update of /cvs-repository/ZODB4
In directory cvs.zope.org:/tmp/cvs-serv8249

Modified Files:
	setup.py 
Log Message:
Update the ZConfig portion of the construction.


=== ZODB4/setup.py 1.8 => 1.9 ===
--- ZODB4/setup.py:1.8	Mon Dec 30 12:05:50 2002
+++ ZODB4/setup.py	Tue Jan  7 18:32:23 2003
@@ -41,16 +41,23 @@
             _Extension.__init__(self, name, sources, **kwargs)
 
 def copy_conf_files(cmd, outputbase):
-    relpath = os.path.join("ZConfig", "tests", "input")
-    inputdir = os.path.join("src", relpath)
-    outputdir = os.path.join(outputbase, relpath)
-    if not os.path.exists(outputdir):
-        dir_util.mkpath(outputdir)
-    for fn in os.listdir(inputdir):
-        if not fn.endswith(".conf"):
-            continue
-        cmd.copy_file(os.path.join(inputdir, fn),
-                      os.path.join(outputdir, fn))
+    for relpath 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"),
+        ]:
+        inputdir = os.path.join("src", relpath)
+        outputdir = os.path.join(outputbase, relpath)
+        if not os.path.exists(outputdir):
+            dir_util.mkpath(outputdir)
+        for fn in os.listdir(inputdir):
+            base, ext = os.path.splitext(fn)
+            if ext not in (".conf", ".txt", ".xml"):
+                continue
+            cmd.copy_file(os.path.join(inputdir, fn),
+                          os.path.join(outputdir, fn))
 
 # provide a bunch of customer components that make it possible
 # to install a non .py file into one of the packages