diff options
author | tarek <none@none> | 2009-10-18 15:12:43 +0200 |
---|---|---|
committer | tarek <none@none> | 2009-10-18 15:12:43 +0200 |
commit | fe015037cc3ff5c0061bd2f427775ad665bda61c (patch) | |
tree | 7a3ac0bef3e7894464ee5cf8a7ff80e885258153 /setup.py | |
parent | 07f1a31c3eb453aab91646834087f3258254990f (diff) | |
download | external_python_setuptools-fe015037cc3ff5c0061bd2f427775ad665bda61c.tar.gz external_python_setuptools-fe015037cc3ff5c0061bd2f427775ad665bda61c.tar.bz2 external_python_setuptools-fe015037cc3ff5c0061bd2f427775ad665bda61c.zip |
avoid a bootstrapping issue with easy_install -U. Fixes #72
--HG--
branch : distribute
extra : rebase_source : 52cd3211f5233e5c08cc34c59838f0fb3b9955f1
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |