[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - setup.py:1.7
Fred L. Drake, Jr.
fred at zope.com
Wed Mar 17 14:09:22 EST 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv2355/zpkgtools
Modified Files:
setup.py
Log Message:
generate setup.cfg (if needed) when building the release package, not when
the resulting setup.py is run for the first time; this makes it easier to
modify between unpacking the distribution and running the setup.py script
=== Packages/zpkgtools/zpkgtools/setup.py 1.6 => 1.7 ===
--- Packages/zpkgtools/zpkgtools/setup.py:1.6 Wed Mar 17 13:27:11 2004
+++ Packages/zpkgtools/zpkgtools/setup.py Wed Mar 17 14:09:21 2004
@@ -58,21 +58,6 @@
pkginfo = package.loadPackageInfo(pkgname, directory, reldir)
self.scripts.extend(pkginfo.script)
self.ext_modules.extend(pkginfo.extensions)
- #
- # Generate setup.cfg the first time we run:
- #
- setup_cfg = os.path.join(self._working_dir, "setup.cfg")
- if os.path.exists(setup_cfg):
- return
- if pkginfo.documentation:
- prefix = "doc_files = "
- s = "\n" + (" " * len(prefix))
- f = open(setup_cfg, "w")
- f.write("[bdist_rpm]\n")
- f.write(prefix)
- f.write(s.join(pkginfo.documentation))
- f.write("\n")
- f.close()
def scan_package(self, name, directory):
files = os.listdir(directory)
More information about the Zope-CVS
mailing list