diff options
| author | Martin v. L?wis <martin@v.loewis.de> | 2009-09-12 19:05:10 +0200 |
|---|---|---|
| committer | Martin v. L?wis <martin@v.loewis.de> | 2009-09-12 19:05:10 +0200 |
| commit | 63001c1ebeb5c4f72900ed4a2230cce22f319e3e (patch) | |
| tree | a118908c6ac2c4a364fe663a42aa187d30e747b6 /setup.py | |
| parent | 55a4d150d3aaa88948ff78c08ce7dd2dce6a9a5d (diff) | |
| download | python-setuptools-bitbucket-63001c1ebeb5c4f72900ed4a2230cce22f319e3e.tar.gz | |
Run 2to3 for api_tests.txt.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -19,6 +19,12 @@ if sys.version_info >= (3,): if copied and outf.endswith(".py"): outfiles_2to3.append(outf) util.run_2to3(outfiles_2to3) + + # 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')]) + + # arrange setup to use the copy sys.path.insert(0, tmp_src) src_root = tmp_src |
