Skip to content

Commit

Permalink
test_wheel: workaround to keep this working on Python 3.4 for now
Browse files Browse the repository at this point in the history
colorama dropped Python 3.4 (see tartley/colorama#228) but pip is not smart enough to lock to an older version.
  • Loading branch information
rdb committed Dec 9, 2019
1 parent 55f624e commit 1568d1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion makepanda/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def test_wheel(wheel, verbose=False):
open(pep425tags, "w").write(data)

# Install pytest into the environment, as well as our wheel.
if subprocess.call([python, "-m", "pip", "install", "pytest", wheel]) != 0:
packages = ["pytest", wheel]
if sys.version_info[0:2] == (3, 4):
packages += ["colorama==0.4.1"]

if subprocess.call([python, "-m", "pip", "install"] + packages) != 0:
shutil.rmtree(envdir)
sys.exit(1)

Expand Down

0 comments on commit 1568d1c

Please sign in to comment.