From 1568d1c6b1b040afcc2c12039bc4a3b32ea70e8c Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 9 Dec 2019 09:50:39 +0100 Subject: [PATCH] test_wheel: workaround to keep this working on Python 3.4 for now colorama dropped Python 3.4 (see tartley/colorama#228) but pip is not smart enough to lock to an older version. --- makepanda/test_wheel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makepanda/test_wheel.py b/makepanda/test_wheel.py index ff1fdcee9a..2236d84030 100755 --- a/makepanda/test_wheel.py +++ b/makepanda/test_wheel.py @@ -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)