python os / platform-specific deps (PEP 508) (intermediate) anthony explains
ฝัง
- เผยแพร่เมื่อ 25 ต.ค. 2022
- today I talk about conditional dependencies for platform-specific deps using environment markers!
- dealing with backported libraries: • how to use python back...
playlist: • anthony explains
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/asottile
stream github: github.com/anthonywritescode
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?
the "isolated builds" are still way slower and only recently supported editable installs. I go over my full project setup here: th-cam.com/video/q8DkatMZvUs/w-d-xo.html
I like your new thumbnail style
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.
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...?
knowing how the py launcher works I don't really trust it
as always first comment
Okay and?
@@rahulprasad2318 and see you in the next one 😹