OS dependent dependencies #1392
-
|
I use I found this discussion #981, however, I am not sure if this is what I am looking for. It would be nice to somehow include this in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You can specify platform-dependent dependencies directly in the As an example, my dependencies = [
"click>=8.1.7",
"dmgbuild>=1.6.1; sys_platform=='darwin'",
]Here, Hope this helps! |
Beta Was this translation helpful? Give feedback.
You can specify platform-dependent dependencies directly in the
pyproject.toml. Some more info here.As an example, my
dependenciesin thepyproject.tomlof one project looks something like this:Here,
clickis installed on any platform,dmgbuildonly ifsys_platformis equal todarwin.Hope this helps!