[Checkins] SVN: zope.interface/trunk/ Require Distribute on Python 3.

Lennart Regebro regebro at gmail.com
Wed Mar 16 12:43:39 EDT 2011


Log message for revision 120987:
  Require Distribute on Python 3.
  

Changed:
  U   zope.interface/trunk/CHANGES.txt
  U   zope.interface/trunk/build_ext_3.py

-=-
Modified: zope.interface/trunk/CHANGES.txt
===================================================================
--- zope.interface/trunk/CHANGES.txt	2011-03-16 16:21:45 UTC (rev 120986)
+++ zope.interface/trunk/CHANGES.txt	2011-03-16 16:43:39 UTC (rev 120987)
@@ -9,6 +9,9 @@
   under Python 3:  undeclared value caused warnings, and segfaults on some
   64 bit architectures.
 
+- setup.py now raises RuntimeError if you don't have Distutils installed when
+  running under Python 3.
+
 3.6.1 (2010-05-03)
 ==================
 

Modified: zope.interface/trunk/build_ext_3.py
===================================================================
--- zope.interface/trunk/build_ext_3.py	2011-03-16 16:21:45 UTC (rev 120986)
+++ zope.interface/trunk/build_ext_3.py	2011-03-16 16:43:39 UTC (rev 120987)
@@ -7,8 +7,8 @@
     from pkg_resources import (normalize_path, working_set, 
                                add_activation_listener, require)
 except ImportError:
-    from distutils.command.build_ext import build_ext
-    
+    raise RuntimeError("zope.interface requires Distribute under Python 3. "
+                       "See http://packages.python.org/distribute")
 
 class optional_build_ext(build_ext):
     """This class subclasses build_ext and allows



More information about the checkins mailing list