summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-01-13 10:05:06 -0500
committerJason R. Coombs <jaraco@jaraco.com>2023-01-13 10:14:21 -0500
commit2ad7228685dc80984f390452ffd2d8a9b5900c8b (patch)
tree24ddf6d060b6635090ee1e4987965d06405b0242 /tools
parent51e3e258622045209faf9f3c2e2d846bc3f9676f (diff)
downloadpython-setuptools-git-2ad7228685dc80984f390452ffd2d8a9b5900c8b.tar.gz
⚫ Fade to black.
Diffstat (limited to 'tools')
-rw-r--r--tools/vendored.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/vendored.py b/tools/vendored.py
index 8a122ad7..71df0ca7 100644
--- a/tools/vendored.py
+++ b/tools/vendored.py
@@ -94,21 +94,20 @@ def clean(vendor):
Remove all files out of the vendor directory except the meta
data (as pip uninstall doesn't support -t).
"""
- remove_all(
- path
- for path in vendor.glob('*')
- if path.basename() != 'vendored.txt'
- )
+ remove_all(path for path in vendor.glob('*') if path.basename() != 'vendored.txt')
def install(vendor):
clean(vendor)
install_args = [
sys.executable,
- '-m', 'pip',
+ '-m',
+ 'pip',
'install',
- '-r', str(vendor / 'vendored.txt'),
- '-t', str(vendor),
+ '-r',
+ str(vendor / 'vendored.txt'),
+ '-t',
+ str(vendor),
]
subprocess.check_call(install_args)
(vendor / '__init__.py').write_text('')