- Notifications
You must be signed in to change notification settings - Fork278
Closed
Description
There might be a problem with
packaging/packaging/markers.py
Line 267 inc22fbd8
| "python_version":platform.python_version()[:3], |
The line is using the definition of the Environment Marker Variablepython_version according to PEP 508. But what if the Python version will consist of more than 3 characters?
I originally posted this as a question on Stack Overflowhttps://stackoverflow.com/questions/48119291/whats-with-the-definition-of-environment-marker-variable-python-version-in-pe Just as Martijn Pieters wrote there, something like".".join(platform.python_version_tuple()[:2]) would fix the problem.
I guess, the PEP would have to be changed first?
Metadata
Metadata
Assignees
Labels
No labels