diff options
author | PJ Eby <distutils-sig@python.org> | 2005-12-14 20:49:36 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-12-14 20:49:36 +0000 |
commit | 207ddcbad2db42f7f94099ab501ab46351e56f4d (patch) | |
tree | 05f90aa9c61a5414411adcca818bfdf15d57d2be /setuptools/command/egg_info.py | |
parent | 13e9b3d6cbdc9c7a8bda76a7d7029e790c02507b (diff) | |
download | external_python_setuptools-207ddcbad2db42f7f94099ab501ab46351e56f4d.tar.gz external_python_setuptools-207ddcbad2db42f7f94099ab501ab46351e56f4d.tar.bz2 external_python_setuptools-207ddcbad2db42f7f94099ab501ab46351e56f4d.zip |
Basic roundtripping support between bdist_wininst and eggs. EasyInstall
will now recognize when a bdist_wininst .exe wraps a .egg-info style
package, and reconstitute it correctly, maintaining the original zip
safety flag, if applicable. This still needs support for entrypoint
scripts, though, as does the install_scripts command.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041678
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-x | setuptools/command/egg_info.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 2879d5da..1c5ed53a 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -285,7 +285,6 @@ class manifest_maker(sdist): - def write_pkg_info(cmd, basename, filename): log.info("writing %s", filename) if not cmd.dry_run: @@ -299,6 +298,9 @@ def write_pkg_info(cmd, basename, filename): finally: metadata.name, metadata.version = oldname, oldver + safe = getattr(cmd.distribution,'zip_safe',None) + import bdist_egg; bdist_egg.write_safety_flag(cmd.egg_info, safe) + def warn_depends_obsolete(cmd, basename, filename): if os.path.exists(filename): log.warn( @@ -324,9 +326,6 @@ def write_toplevel_names(cmd, basename, filename): - - - def write_arg(cmd, basename, filename): argname = os.path.splitext(basename)[0] value = getattr(cmd.distribution, argname, None) |