aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-09-12 19:05:10 +0200
committerMartin v. Löwis <martin@v.loewis.de>2009-09-12 19:05:10 +0200
commit9290e81f1018c0c80e315958cb4b2977c38a4afb (patch)
treea58e1d332b249a20c1070fde072e43f9ff613c98 /setup.py
parent54ea65f8a9d2aff50c19fb311975d885635496bb (diff)
downloadexternal_python_setuptools-9290e81f1018c0c80e315958cb4b2977c38a4afb.tar.gz
external_python_setuptools-9290e81f1018c0c80e315958cb4b2977c38a4afb.tar.bz2
external_python_setuptools-9290e81f1018c0c80e315958cb4b2977c38a4afb.zip
Run 2to3 for api_tests.txt.
--HG-- branch : distribute extra : rebase_source : 6249f2963461f6ada86facedbdd89b8fe2eb9e1a
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 1582f632..3a47a09c 100755
--- a/setup.py
+++ b/setup.py
@@ -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