Constrain package 'feature' to certain python versions or platforms? #1392
-
Is it possible to constrain a package 'features' using extras syntax to only be installable when using certain Python versions or platforms — and maybe other conditions? For example: [project.optional-dependencies]
feature = [
"pkg1; python_version ~=3.10",
"pkg2",
] Will install |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's not possible to make a user facing error like that actually. The best you can do is provide an error at runtime. |
Beta Was this translation helpful? Give feedback.
It's not possible to make a user facing error like that actually. The best you can do is provide an error at runtime.