summaryrefslogtreecommitdiff
path: root/pavement.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-09-27 14:24:22 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-09-27 14:24:22 -0500
commit66a6724da8eda3336643dee086da2a3495e6422a (patch)
tree64043e9782491bde3a3a9ae2314cc59451a6c9c0 /pavement.py
parentdf3905616933c90af95e99f705b800a2f5c1c921 (diff)
parent35ea365b50bd1a64375fdbcce187affab22af3b7 (diff)
downloadpython-setuptools-git-setuptools-scm.tar.gz
Merge with mastersetuptools-scm
Diffstat (limited to 'pavement.py')
-rw-r--r--pavement.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pavement.py b/pavement.py
index 303e9bac..f85617d4 100644
--- a/pavement.py
+++ b/pavement.py
@@ -3,19 +3,23 @@ import re
from paver.easy import task, path as Path
import pip
+
def remove_all(paths):
for path in paths:
path.rmtree() if path.isdir() else path.remove()
+
@task
def update_vendored():
vendor = Path('pkg_resources/_vendor')
+ # pip uninstall doesn't support -t, so do it manually
remove_all(vendor.glob('packaging*'))
remove_all(vendor.glob('six*'))
remove_all(vendor.glob('pyparsing*'))
+ remove_all(vendor.glob('appdirs*'))
install_args = [
'install',
- '-r', str(vendor/'vendored.txt'),
+ '-r', str(vendor / 'vendored.txt'),
'-t', str(vendor),
]
pip.main(install_args)