-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use proper PEP 508 environment marker to install colorama on Windows only #257
Conversation
Indeed, after decompressing https://files.pythonhosted.org/packages/bf/9e/6378bc3d04592cd3692dd50f829c6678fae69052fda048a7981657c17489/knack-0.9.0-py3-none-any.whl,
|
'tabulate' | ||
'tabulate', | ||
# On Windows, colorama is required for legacy terminals. | ||
'colorama; sys_platform == "win32"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am actually wondering which one is the best:
portalocker
is one dependency of Azure CLI and it uses:
https://github.com/WoLpH/portalocker/blob/00cffcb1831208691d3bf6850df4768989a0bd4c/setup.py#L133
'pywin32>=226; platform_system == "Windows"',
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have seen several projects to use platform_system == "Windows"
before, but none to use sys_platform
. I don't think it matters but maybe we should use platform_system
because it is more commonly used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see this has already been merged so I guess it doesn't matter. But.. Would ever be the case sys_platform
would be something else than win32
in a Windows? Like win64
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would ever be the case
sys_platform
would be something else thanwin32
in a Windows? Likewin64
?
I don't think so. I am running 64-bit Python on 64-bit Windows:
> python -c "import sys; print(sys.platform)"
win32
https://docs.python.org/3/library/sys.html#sys.platform only mentions win32
too.
When will this be released? |
Issue #256
Using proper PEP 508 environment marker to install colorama on Windows only.