Commit 79f8fd1a authored by Kazuhiko's avatar Kazuhiko

fixup! setup: specify setuptools location explicitly when calling make.

parent 8b9a8081
......@@ -114,12 +114,8 @@ class build_py(_build_py):
def runmake(target):
setuptools_location = pkg_resources.working_set.find(
pkg_resources.Requirement.parse('setuptools')).location
original_python_path = os.environ.get('PYTHONPATH')
os.environ['PYTHONPATH'] = setuptools_location
try:
err = os.system('make %s PYTHON="%s"' % (target, sys.executable))
finally:
os.environ['PYTHONPATH'] = original_python_path
err = os.system('make %s PYTHON="%s" PYTHONPATH="%s"' % \
(target, sys.executable, setuptools_location))
if err:
raise DistutilsExecError('Failed to execute `make %s`' % target)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment