[Zope-CVS] SVN: zpkgtools/trunk/zpkgsetup/setup.py make sure files identified as headers get installed

Fred L. Drake, Jr. fdrake at gmail.com
Fri Nov 5 14:09:26 EST 2004


Log message for revision 28348:
  make sure files identified as headers get installed

Changed:
  U   zpkgtools/trunk/zpkgsetup/setup.py

-=-
Modified: zpkgtools/trunk/zpkgsetup/setup.py
===================================================================
--- zpkgtools/trunk/zpkgsetup/setup.py	2004-11-05 16:56:50 UTC (rev 28347)
+++ zpkgtools/trunk/zpkgsetup/setup.py	2004-11-05 19:09:26 UTC (rev 28348)
@@ -71,6 +71,7 @@
         self.platforms = None
         self.classifiers = None
         self.data_files = []
+        self.headers = []
 
     def initialize(self):
         metadata_file = os.path.join(self._working_dir, self._pkgname,
@@ -232,6 +233,9 @@
                 self.data_files = d.items()
             else:
                 self.data_files = pkginfo.data_files
+        for fn in pkginfo.header:
+            if fn not in self.headers:
+                self.headers.append(fn)
 
     def add_package_dir(self, pkgname, reldir):
         self.packages.append(pkgname)



More information about the Zope-CVS mailing list