aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/build_py.py
diff options
context:
space:
mode:
authorLennart Regebro <regebro@gmail.com>2009-09-18 17:22:17 +0200
committerLennart Regebro <regebro@gmail.com>2009-09-18 17:22:17 +0200
commit3736fee0faddbbc93fa6b7a1b233d4c2dcf11d76 (patch)
tree9ecddc897e3039be6be67c6c5b75e126575f369f /setuptools/command/build_py.py
parent55413ad562eddc5ffc235bde5471fdf010421f9a (diff)
downloadexternal_python_setuptools-3736fee0faddbbc93fa6b7a1b233d4c2dcf11d76.tar.gz
external_python_setuptools-3736fee0faddbbc93fa6b7a1b233d4c2dcf11d76.tar.bz2
external_python_setuptools-3736fee0faddbbc93fa6b7a1b233d4c2dcf11d76.zip
Works with zope.interface now.
--HG-- branch : distribute extra : rebase_source : c8cd9fd837bbac96c8949f0015d84051bd8ab5c7
Diffstat (limited to 'setuptools/command/build_py.py')
-rw-r--r--setuptools/command/build_py.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py
index 2413b420..94f66741 100644
--- a/setuptools/command/build_py.py
+++ b/setuptools/command/build_py.py
@@ -21,7 +21,9 @@ try:
class Mixin2to3(_Mixin2to3):
def run_2to3(self, files, doctests = False):
- if not setuptools.run_2to3:
+ # See of the distribution option has been set, otherwise check the
+ # setuptools default.
+ if self.distribution.run_2to3 is not True and setuptools.run_2to3 is False:
return
if not files:
return
@@ -30,6 +32,8 @@ try:
self.fixer_names = []
for p in setuptools.lib2to3_fixer_packages:
self.fixer_names.extend(get_fixers_from_package(p))
+ for p in self.distribution.additional_2to3_fixers:
+ self.fixer_names.extend(get_fixers_from_package(p))
if doctests:
if setuptools.run_2to3_on_doctests:
r = DistutilsRefactoringTool(self.fixer_names)