Browse Source

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.
rdb 6 years ago
parent
commit
1568d1c6b1
1 changed files with 5 additions and 1 deletions
  1. 5 1
      makepanda/test_wheel.py

+ 5 - 1
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)