[Catalog-sig] [Distutils] setuptools 0.6b4 released

Bob Ippolito bob at redivi.com
Thu Jul 13 09:43:32 CEST 2006


On Jul 11, 2006, at 12:12 PM, Phillip J. Eby wrote:

> I have just released version 0.6b4 of setuptools, the last beta  
> release of
> setuptools 0.6.  Please upgrade and test at your earliest  
> convenience, as I
> would like to issue a release candidate version next week.

Here's another patch I'd like to see ASAP. Some vendors have Q&A  
procedures that disallow empty files without special exception, so we  
should ensure that setuptools doesn't create empty safety flag files.

Index: setuptools/command/bdist_egg.py
===================================================================
--- setuptools/command/bdist_egg.py     (revision 50611)
+++ setuptools/command/bdist_egg.py     (working copy)
@@ -360,7 +360,9 @@
              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,'w')
+            f.write(fn)
+            f.close()
safety_flags = {
      True: 'zip-safe',

-bob



More information about the Catalog-sig mailing list