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.
This commit is contained in:
rdb 2019-12-09 09:50:39 +01:00
parent 55f624e073
commit 1568d1c6b1

View File

@ -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)