Skip to content

Commit c4be964

Browse files
committed
Install "colorama" if windows platform
1 parent a6e4ea3 commit c4be964

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright (C) Ivan Kravets <[email protected]>
22
# See LICENSE for details.
33

4+
from sys import platform as sysplatform
5+
46
from setuptools import find_packages, setup
57

68
from platformio import (__author__, __description__, __email__, __license__,
@@ -17,11 +19,10 @@
1719
license=__license__,
1820
install_requires=[
1921
"click",
20-
"colorama",
2122
"pyserial",
2223
"requests",
2324
# "SCons"
24-
],
25+
] + (["colorama"] if sysplatform.startswith("win") else []),
2526
packages=find_packages(),
2627
package_data={"platformio": ["*.ini"]},
2728
entry_points={

0 commit comments

Comments
 (0)