浏览代码

test_wheel: only install colorama on Windows

rdb 6 年之前
父节点
当前提交
a503e9439e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      makepanda/test_wheel.py

+ 1 - 1
makepanda/test_wheel.py

@@ -46,7 +46,7 @@ def test_wheel(wheel, verbose=False):
 
     # Install pytest into the environment, as well as our wheel.
     packages = ["pytest", wheel]
-    if sys.version_info[0:2] == (3, 4):
+    if sys.version_info[0:2] == (3, 4) and sys.platform == "win32":
         packages += ["colorama==0.4.1"]
 
     if subprocess.call([python, "-m", "pip", "install"] + packages) != 0: