From fe015037cc3ff5c0061bd2f427775ad665bda61c Mon Sep 17 00:00:00 2001 From: tarek Date: Sun, 18 Oct 2009 15:12:43 +0200 Subject: avoid a bootstrapping issue with easy_install -U. Fixes #72 --HG-- branch : distribute extra : rebase_source : 52cd3211f5233e5c08cc34c59838f0fb3b9955f1 --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'setup.py') 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) -- cgit v1.2.1