diff options
author | Benedikt Morbach <benedikt.morbach@googlemail.com> | 2013-10-03 20:45:00 +0200 |
---|---|---|
committer | Benedikt Morbach <benedikt.morbach@googlemail.com> | 2013-10-03 20:45:00 +0200 |
commit | b78c325b3f5f7d8330fbf30c54b5ea1baf2b930f (patch) | |
tree | b78e1c066373351dc58a3dd528c029a2d7a76ac6 /setup.py | |
parent | eda5209c18f4d7279beba6f292d415615b4f5252 (diff) | |
download | pylint-b78c325b3f5f7d8330fbf30c54b5ea1baf2b930f.tar.gz |
setup.py: don't call 2to3 directly
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -121,12 +121,6 @@ class MyInstallLib(install_lib.install_lib): base = join(subpackage_of, modname) else: base = modname - if sys.platform == 'win32': - two_to_three = [sys.executable] - exe_path = os.path.dirname(sys.executable) - two_to_three.append(os.path.join(exe_path, 'Tools\\Scripts\\2to3.py')) - else: - two_to_three = ['2to3'] for directory in include_dirs: dest = join(self.install_dir, base, directory) if sys.version_info >= (3, 0): @@ -139,9 +133,9 @@ class MyInstallLib(install_lib.install_lib): if sys.version_info >= (3, 0): # process manually python file in include_dirs (test data) - from subprocess import call + from distutils.util import run_2to3 print('running 2to3 on', dest) - call(two_to_three + ['-wn', dest]) + run_2to3([dest]) def install(**kwargs): |