Commit a0453161 authored by PJ Eby's avatar PJ Eby

Ensure that the distribution name written to PKG-INFO is the same as the

name you'll use in 'require()' operations for that distribution.

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041030
parent 0017e334
...@@ -174,15 +174,15 @@ class bdist_egg(Command): ...@@ -174,15 +174,15 @@ class bdist_egg(Command):
egg_info = os.path.join(archive_root,'EGG-INFO') egg_info = os.path.join(archive_root,'EGG-INFO')
self.mkpath(egg_info) self.mkpath(egg_info)
self.mkpath(self.egg_info) self.mkpath(self.egg_info)
log.info("writing %s" % os.path.join(self.egg_info,'PKG-INFO')) log.info("writing %s" % os.path.join(self.egg_info,'PKG-INFO'))
if not self.dry_run: if not self.dry_run:
metadata = self.distribution.metadata metadata = self.distribution.metadata
metadata.version, oldver = self.egg_version, metadata.version metadata.version, oldver = self.egg_version, metadata.version
metadata.name, oldname = self.egg_name, metadata.name
try: try:
metadata.write_pkg_info(self.egg_info) metadata.write_pkg_info(self.egg_info)
finally: finally:
metadata.version = oldver metadata.name, metadata.version = oldname, oldver
native_libs = os.path.join(self.egg_info,"native_libs.txt") native_libs = os.path.join(self.egg_info,"native_libs.txt")
if ext_outputs: if ext_outputs:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment