Run Pip via {sys.executable} -m pip
This solves the same problem as c457767edf814f92e1da8cb9d08fa52404ea074c, but in a way that's actually [recommended](https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program).
This commit is contained in:
parent
53b12376d1
commit
5a2c528681
4
setup.py
4
setup.py
@ -123,8 +123,8 @@ class BuildWheels(Command):
|
|||||||
"""Downloads a wheel from PyPI and saves it in self.wheels_path."""
|
"""Downloads a wheel from PyPI and saves it in self.wheels_path."""
|
||||||
|
|
||||||
subprocess.check_call([
|
subprocess.check_call([
|
||||||
'pip', 'download',
|
sys.executable, '-m', 'pip',
|
||||||
'--no-deps',
|
'download', '--no-deps',
|
||||||
'--dest', str(self.wheels_path),
|
'--dest', str(self.wheels_path),
|
||||||
requirement[0]
|
requirement[0]
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user