Skip to content

Commit

Permalink
Merge pull request #223 from dHannasch/sitepackages-so-tox-bootstrap-…
Browse files Browse the repository at this point in the history
…does-not-hang-without-internet

Use tox --sitepackages for the tox -e bootstrap call
  • Loading branch information
ionelmc committed Mar 5, 2021
2 parents 3bed31a + 9649065 commit a58aa7b
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 a58aa7b

Please sign in to comment.