-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Allow specifying values for environment markers during install #9981
Comments
Technically Mapping markers directly into options feels wrong to me since there are much too many (and may grow in the future). I wonder whether it would be better to come up with some mini-syntax for this, e.g.
This would avoid the dash-to-underscore conversion as well (which also annoys me slightly). |
According to my experiments, I would also like the possibility to override environment markers, so that https://github.com/aivarannamaa/minipip/ could be more flexible in collecting content for installation to MicroPython and CircuitPython devices. The |
This is now being tracked via #11664 ? |
I think so, yes. |
What's the problem this feature will solve?
Pip currently allows you to specify some, but not all values for environment markers during install (for example the
--platform
and--implementation
options). PEP 496 specifies a number of environment markers that cannot be specified at the moment (in particularos_name
andplatform_release
).Describe the solution you'd like
Add options
--platform-release VALUE
and--os-name VALUE
to specify the value ofplatform_release
andos_name
during the evaluation of platform markers.My reason for filing the issue is this PyObjC issue: ronaldoussoren/pyobjc#354
This asks for a way to install all sub packages of PyObjC using the
pyobjc
umbrella package, which usesplatform_release
to select sub packages that are relevant for the current machine. IMHO the current place to enable this is in pip, not in PyObjC.Alternative Solutions
I've spent little time to thing about this, but the current workaround for my users is to specify all sub packages manually.
Additional context
None
The text was updated successfully, but these errors were encountered: