[Checkins] SVN: zope.interface/branches/regebro-python3/setup.py include the zope.interface fixers into the build process

Wolfgang Schnerring wosc at wosc.de
Sun Sep 13 06:47:42 EDT 2009


Log message for revision 103899:
  include the zope.interface fixers into the build process
  

Changed:
  U   zope.interface/branches/regebro-python3/setup.py

-=-
Modified: zope.interface/branches/regebro-python3/setup.py
===================================================================
--- zope.interface/branches/regebro-python3/setup.py	2009-09-13 10:44:46 UTC (rev 103898)
+++ zope.interface/branches/regebro-python3/setup.py	2009-09-13 10:47:42 UTC (rev 103899)
@@ -32,6 +32,12 @@
     import setuptools
 
     setuptools.run_2to3 = True
+    from setuptools import lib2to3_fixer_packages
+    # this is a bit kludgy since our fixers live inside ourselves,
+    # which we can't import since 2to3 has not been run yet
+    sys.path.append(os.path.join('src', 'zope', 'interface'))
+    lib2to3_fixer_packages.append('fixers')
+
 except ImportError:
     # do we need to support plain distutils for building when even
     # the package itself requires setuptools for installing?



More information about the checkins mailing list