aboutsummaryrefslogtreecommitdiffstats
path: root/pavement.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-09-18 11:12:43 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-09-18 11:12:43 -0400
commita170865f29bce8389ffcf5bfda8091fc6c120a45 (patch)
treeca5ec7e4158adc26d14e4e770002d9b3721c9464 /pavement.py
parentb40d2de57b61a28cb79f25eb99a2c2e6f9426343 (diff)
downloadexternal_python_setuptools-a170865f29bce8389ffcf5bfda8091fc6c120a45.tar.gz
external_python_setuptools-a170865f29bce8389ffcf5bfda8091fc6c120a45.tar.bz2
external_python_setuptools-a170865f29bce8389ffcf5bfda8091fc6c120a45.zip
Update pavement not to import pip
Diffstat (limited to 'pavement.py')
-rw-r--r--pavement.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pavement.py b/pavement.py
index 84e5825d..b5220d10 100644
--- a/pavement.py
+++ b/pavement.py
@@ -1,7 +1,8 @@
import re
+import sys
+import subprocess
from paver.easy import task, path as Path
-import pip
def remove_all(paths):
@@ -40,11 +41,13 @@ def clean(vendor):
def install(vendor):
clean(vendor)
install_args = [
+ sys.executable,
+ '-m', 'pip',
'install',
'-r', str(vendor / 'vendored.txt'),
'-t', str(vendor),
]
- pip.main(install_args)
+ subprocess.check_call(install_args)
remove_all(vendor.glob('*.dist-info'))
remove_all(vendor.glob('*.egg-info'))
(vendor / '__init__.py').write_text('')