From 53b12376d1c7d781b4b357fb46921bc895d39d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 4 Jun 2019 12:35:46 +0200 Subject: [PATCH] Revert "Use Python module to run Pip" This reverts commit c457767edf814f92e1da8cb9d08fa52404ea074c. Modern pip can no longer be used this way ('pip.main' does not exist). --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index ce9ca10..fa85a98 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,6 @@ import shutil import subprocess import re import pathlib -import pip import zipfile from distutils import log @@ -122,8 +121,9 @@ class BuildWheels(Command): def download_wheel(self, requirement): """Downloads a wheel from PyPI and saves it in self.wheels_path.""" - pip.main([ - 'download', + + subprocess.check_call([ + 'pip', 'download', '--no-deps', '--dest', str(self.wheels_path), requirement[0]