aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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('')