[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - setup.py:1.22
Fred L. Drake, Jr.
fred at zope.com
Mon Jun 7 13:52:34 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv29647/zpkgtools
Modified Files:
setup.py
Log Message:
do not install extension sources and public headers as package data
=== Packages/zpkgtools/zpkgtools/setup.py 1.21 => 1.22 ===
--- Packages/zpkgtools/zpkgtools/setup.py:1.21 Fri Jun 4 00:20:49 2004
+++ Packages/zpkgtools/zpkgtools/setup.py Mon Jun 7 13:52:03 2004
@@ -159,9 +159,13 @@
#
relbase = posixpath.join(reldir, "")
pkgfiles = self.package_data.get(reldir, [])
- non_pkgdata = pkginfo.script[:]
+ non_pkgdata = pkginfo.script + pkginfo.header
for dir, files in pkginfo.data_files:
non_pkgdata.extend(files)
+ for ext in pkginfo.extensions:
+ for fn in ext.sources + ext.depends:
+ if fn not in non_pkgdata:
+ non_pkgdata.append(fn)
for fn in non_pkgdata:
pkgdatapath = fn[len(relbase):]
if pkgdatapath in pkgfiles:
More information about the Zope-CVS
mailing list