aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-07-14 23:37:52 +0000
committerPJ Eby <distutils-sig@python.org>2006-07-14 23:37:52 +0000
commit403e6845234a3eb83b5e2858edb5e204f6641842 (patch)
tree01e9f931f9a4924613e37efaeecf84eeaa3456ee /setuptools/command/bdist_egg.py
parentd9cf1dca48e1ad0e14c06a89ab92ffd3dc9e9df8 (diff)
downloadexternal_python_setuptools-403e6845234a3eb83b5e2858edb5e204f6641842.tar.gz
external_python_setuptools-403e6845234a3eb83b5e2858edb5e204f6641842.tar.bz2
external_python_setuptools-403e6845234a3eb83b5e2858edb5e204f6641842.zip
* Fixed ``AttributeError`` when trying to download a ``setup_requires``
dependency when a distribution lacks a ``dependency_links`` setting. * Made ``zip-safe`` and ``not-zip-safe`` flag files contain a single byte, so as to play better with packaging tools that complain about zero-length files. * Made ``setup.py develop`` respect the ``--no-deps`` option, which it previously was ignoring. (bug fixes backported from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050659
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 0ae3984e..981a1f9b 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -360,7 +360,7 @@ def write_safety_flag(egg_dir, safe):
if safe is None or bool(safe)<>flag:
os.unlink(fn)
elif safe is not None and bool(safe)==flag:
- open(fn,'w').close()
+ f=open(fn,'wb'); f.write('\n'); f.close()
safety_flags = {
True: 'zip-safe',