python os / platform-specific deps (PEP 508) (intermediate) anthony explains #488

preview_player
Показать описание
today I talk about conditional dependencies for platform-specific deps using environment markers!

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

Why do you use setup.cfg instead of pyproject.toml? Do you have any video about the different project config files?

mad_vegan
Автор

For 100 points; mention how to prevent installation of a library under a specific platform, mainly because you know for sure it will never work on these. I have an idea, but i did not test it. Basically add a conditional dependency on a library that does not exist.

ssbarnea
Автор

I noted on Windows you were running "python" instead of the provided "py" (which defaults to latest installed version, but makes it easy to target any installed version). Is that out of old habit, or...?

magnuscarlsson