diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2009-09-12 23:12:36 +0200 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2009-09-12 23:12:36 +0200 |
commit | ee89ffb19c6fa2aab91d95d1866e3c08866bc842 (patch) | |
tree | d653121e62d96243b23600728989ea7bd8da8cd4 /setup.py | |
parent | 62b9ce70f7cab7d9b1be27c5ec47c8d06377c3dd (diff) | |
download | external_python_setuptools-ee89ffb19c6fa2aab91d95d1866e3c08866bc842.tar.gz external_python_setuptools-ee89ffb19c6fa2aab91d95d1866e3c08866bc842.tar.bz2 external_python_setuptools-ee89ffb19c6fa2aab91d95d1866e3c08866bc842.zip |
Run 2to3 on doctest source.
--HG--
branch : distribute
extra : rebase_source : 6aeab2a32858c08883afcfd1f84ef8186083513f
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -18,11 +18,12 @@ if sys.version_info >= (3,): outf, copied = file_util.copy_file(f, os.path.join(tmp_src, f), update=1) if copied and outf.endswith(".py"): outfiles_2to3.append(outf) - util.run_2to3(outfiles_2to3) + if copied and outf.endswith('api_tests.txt'): + # XXX support this in distutils as well + from lib2to3.main import main + main('lib2to3.fixes', ['-wd', os.path.join(tmp_src, 'tests', 'api_tests.txt')]) - # XXX support this in distutils as well - from lib2to3.main import main - main('lib2to3.fixes', ['-wd', os.path.join(tmp_src, 'tests', 'api_tests.txt')]) + util.run_2to3(outfiles_2to3) # arrange setup to use the copy sys.path.insert(0, tmp_src) |