[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - app.py:1.46
Fred L. Drake, Jr.
fred at zope.com
Mon May 3 13:09:24 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv19141
Modified Files:
app.py
Log Message:
make sure we always include the PUBLICATION.cfg for the top-level
resource, since we expect to load that to provide metadata to
distutils (in particular, the list of supported platforms)
=== Packages/zpkgtools/zpkgtools/app.py 1.45 => 1.46 ===
--- Packages/zpkgtools/zpkgtools/app.py:1.45 Mon May 3 12:48:28 2004
+++ Packages/zpkgtools/zpkgtools/app.py Mon May 3 13:09:23 2004
@@ -131,6 +131,7 @@
if os.path.isfile(deps_path):
shutil.copy(deps_path,
os.path.join(self.destination, "DEPENDENCIES.cfg"))
+ self.ensure_publication_info()
def build_application_distribution(self):
packages, collections = self.assemble_collection()
@@ -265,6 +266,7 @@
if distribution:
self.ip.addIncludes(self.destination, specs.distribution)
+ self.ensure_publication_info()
self.create_manifest(destination)
deps_file = os.path.join(source, "DEPENDENCIES.cfg")
@@ -297,6 +299,15 @@
pkginfo = package.loadPackageInfo(name, pkgdest, name)
self.generate_setup_cfg(destination, pkginfo)
self.generate_package_setup(destination, name)
+
+ def ensure_publication_info(self):
+ pubinfo_dest = os.path.join(self.destination, self.resource_name,
+ publication.PUBLICATION_CONF)
+ if not os.path.exists(pubinfo_dest):
+ shutil.copy2(os.path.join(self.source,
+ publication.PUBLICATION_CONF),
+ pubinfo_dest)
+ self.ip.add_output(pubinfo_dest)
def load_metadata(self):
metadata_file = os.path.join(self.source, publication.PUBLICATION_CONF)
More information about the Zope-CVS
mailing list