diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 11:54:02 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-02-06 18:15:35 -0500 |
commit | 0559f17d4588553eb428d57ecfebab9e0e988e65 (patch) | |
tree | 6773047a2cc502d7a611e623cb771f0d19d1c8e2 /tools/tox_pip.py | |
parent | 131482820238cb060b38e7e55bffabea4f0a3a0e (diff) | |
download | external_python_setuptools-0559f17d4588553eb428d57ecfebab9e0e988e65.tar.gz external_python_setuptools-0559f17d4588553eb428d57ecfebab9e0e988e65.tar.bz2 external_python_setuptools-0559f17d4588553eb428d57ecfebab9e0e988e65.zip |
Bootstrap the environment in tox, allowing simple 'tox' to run tests and simplifying all of the pipelines.
Diffstat (limited to 'tools/tox_pip.py')
-rw-r--r-- | tools/tox_pip.py | 11 |
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) |