Skip to content

Commit

Permalink
Use tox --sitepackages for the tox -e bootstrap call so that tox does…
Browse files Browse the repository at this point in the history
… not hang indefinitely if there is no active Internet connection.
  • Loading branch information
dHannasch committed Feb 22, 2021
1 parent 3bed31a commit 9649065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ def unlink_if_exists(path):
Generating CI configuration ...
""")
try:
subprocess.check_call(['tox', '-e', 'bootstrap'])
subprocess.check_call(['tox', '-e', 'bootstrap', '--sitepackages'])
except Exception:
try:
subprocess.check_call([sys.executable, '-mtox', '-e', 'bootstrap'])
subprocess.check_call([sys.executable, '-mtox', '-e', 'bootstrap', '--sitepackages'])
except Exception:
subprocess.check_call([sys.executable, join('ci', 'bootstrap.py')])

Expand Down

0 comments on commit 9649065

Please sign in to comment.