diff options
author | PJ Eby <distutils-sig@python.org> | 2008-08-21 19:20:10 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2008-08-21 19:20:10 +0000 |
commit | 3dc61ffa084eaff9c3515f8faf7fde19a94160dd (patch) | |
tree | 51f9728339862c2561edcbc3024dae87aa9f4f35 /setuptools/command/bdist_egg.py | |
parent | d76df70dd1dffb2591c6a26ecc2a20958ee03073 (diff) | |
download | external_python_setuptools-3dc61ffa084eaff9c3515f8faf7fde19a94160dd.tar.gz external_python_setuptools-3dc61ffa084eaff9c3515f8faf7fde19a94160dd.tar.bz2 external_python_setuptools-3dc61ffa084eaff9c3515f8faf7fde19a94160dd.zip |
Fix for http://bugs.python.org/setuptools/issue9 (backport from trunk)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065955
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r-- | setuptools/command/bdist_egg.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py index bb1112c1..61fd6c3d 100644 --- a/setuptools/command/bdist_egg.py +++ b/setuptools/command/bdist_egg.py @@ -203,10 +203,12 @@ class bdist_egg(Command): log.info("installing scripts to %s" % script_dir) self.call_command('install_scripts',install_dir=script_dir,no_ep=1) - native_libs = os.path.join(self.egg_info,"native_libs.txt") + self.copy_metadata_to(egg_info) + native_libs = os.path.join(egg_info, "native_libs.txt") if all_outputs: log.info("writing %s" % native_libs) if not self.dry_run: + ensure_directory(native_libs) libs_file = open(native_libs, 'wt') libs_file.write('\n'.join(all_outputs)) libs_file.write('\n') @@ -216,8 +218,6 @@ class bdist_egg(Command): if not self.dry_run: os.unlink(native_libs) - self.copy_metadata_to(egg_info) - write_safety_flag( os.path.join(archive_root,'EGG-INFO'), self.zip_safe() ) |