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
dependencies
in thepyproject.toml
of one project looks something like this:Here,
click
is installed on any platform,dmgbuild
only ifsys_platform
is equal todarwin
.Hope this helps!