Commit fe015037 authored by tarek's avatar tarek

avoid a bootstrapping issue with easy_install -U. Fixes #72

--HG--
branch : distribute
extra : rebase_source : 52cd3211f5233e5c08cc34c59838f0fb3b9955f1
parent 07f1a31c
......@@ -7,6 +7,7 @@ CHANGES
-----
* Issue 74: no_fake should be True by default.
* Issue 72: avoid a bootstrapping issue with easy_install -U
-----
0.6.6
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment