aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorDaniel Stutzbach <daniel@stutzbachenterprises.com>2009-10-19 08:43:45 -0500
committerDaniel Stutzbach <daniel@stutzbachenterprises.com>2009-10-19 08:43:45 -0500
commit7572da337f94c328f00100dc55f494c9d811f4bd (patch)
tree70dbc2a3ac69c1322ae5b0da64a7ffb550dc4c56 /setup.py
parent39be786e197fd135dac23a9102d257877985ebf0 (diff)
parentfe015037cc3ff5c0061bd2f427775ad665bda61c (diff)
downloadexternal_python_setuptools-7572da337f94c328f00100dc55f494c9d811f4bd.tar.gz
external_python_setuptools-7572da337f94c328f00100dc55f494c9d811f4bd.tar.bz2
external_python_setuptools-7572da337f94c328f00100dc55f494c9d811f4bd.zip
Merged bugfixes from the danielstutzbach fork
--HG-- branch : distribute extra : rebase_source : cce25468ec8f18af01e99af60cdaaf0fb4a72ee9
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index aaa7f3e3..cdc28e65 100755
--- a/setup.py
+++ b/setup.py
@@ -67,6 +67,12 @@ class build_py(_build_py):
self.copy_file(srcfile, exe_target)
srcfile = os.path.abspath(srcfile)
+
+ # avoid a bootstrapping issue with easy_install -U (when the
+ # previous version doesn't have convert_2to3_doctests)
+ if not hasattr(self.distribution, 'convert_2to3_doctests'):
+ return
+
if copied and srcfile in self.distribution.convert_2to3_doctests:
self.__doctests_2to3.append(outf)