From 5a2c528681b0f05243340f45381217973f29f0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 4 Jun 2019 12:40:02 +0200 Subject: [PATCH] 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). --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index fa85a98..69b5337 100755 --- a/setup.py +++ b/setup.py @@ -123,8 +123,8 @@ class BuildWheels(Command): """Downloads a wheel from PyPI and saves it in self.wheels_path.""" subprocess.check_call([ - 'pip', 'download', - '--no-deps', + sys.executable, '-m', 'pip', + 'download', '--no-deps', '--dest', str(self.wheels_path), requirement[0] ])