aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/tox_pip.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/tox_pip.py b/tools/tox_pip.py
index f592e412..ba776638 100644
--- a/tools/tox_pip.py
+++ b/tools/tox_pip.py
@@ -13,9 +13,16 @@ def remove_setuptools():
subprocess.check_call(cmd, cwd='.tox')
+def bootstrap():
+ print("Running bootstrap")
+ cmd = [sys.executable, '-m', 'bootstrap']
+ subprocess.check_call(cmd)
+
+
def pip(args):
- # When installing '.', remove setuptools
- '.' in args and remove_setuptools()
+ if '.' in args:
+ remove_setuptools()
+ bootstrap()
cmd = [sys.executable, '-m', 'pip'] + args
subprocess.check_call(cmd)