Commit a170865f authored by Jason R. Coombs's avatar Jason R. Coombs

Update pavement not to import pip

parent b40d2de5
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('')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment