aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 39042fb8..d3139580 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -174,15 +174,15 @@ class bdist_egg(Command):
egg_info = os.path.join(archive_root,'EGG-INFO')
self.mkpath(egg_info)
self.mkpath(self.egg_info)
-
log.info("writing %s" % os.path.join(self.egg_info,'PKG-INFO'))
if not self.dry_run:
metadata = self.distribution.metadata
metadata.version, oldver = self.egg_version, metadata.version
+ metadata.name, oldname = self.egg_name, metadata.name
try:
metadata.write_pkg_info(self.egg_info)
finally:
- metadata.version = oldver
+ metadata.name, metadata.version = oldname, oldver
native_libs = os.path.join(self.egg_info,"native_libs.txt")
if ext_outputs: