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): ...@@ -114,12 +114,8 @@ class build_py(_build_py):
def runmake(target): def runmake(target):
setuptools_location = pkg_resources.working_set.find( setuptools_location = pkg_resources.working_set.find(
pkg_resources.Requirement.parse('setuptools')).location pkg_resources.Requirement.parse('setuptools')).location
original_python_path = os.environ.get('PYTHONPATH') err = os.system('make %s PYTHON="%s" PYTHONPATH="%s"' % \
os.environ['PYTHONPATH'] = setuptools_location (target, sys.executable, setuptools_location))
try:
err = os.system('make %s PYTHON="%s"' % (target, sys.executable))
finally:
os.environ['PYTHONPATH'] = original_python_path
if err: if err:
raise DistutilsExecError('Failed to execute `make %s`' % target) 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