Use proper PEP 508 environment marker to install colorama on Windows only#257
Use proper PEP 508 environment marker to install colorama on Windows only#257jiasli merged 3 commits intomicrosoft:devfrom
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.
I am actually wondering which one is the best:
portalocker is one dependency of Azure CLI and it uses:
'pywin32>=226; platform_system == "Windows"',There was a problem hiding this comment.
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.
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.
Would ever be the case
sys_platformwould be something else thanwin32in 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.