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!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 9

  • @mad_vegan
    @mad_vegan ปีที่แล้ว +14

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

    • @anthonywritescode
      @anthonywritescode  ปีที่แล้ว +2

      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

  • @tompov227
    @tompov227 ปีที่แล้ว

    I like your new thumbnail style

  • @ssbarnea
    @ssbarnea ปีที่แล้ว +1

    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.

  • @magnuscarlsson6785
    @magnuscarlsson6785 ปีที่แล้ว +1

    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...?

    • @anthonywritescode
      @anthonywritescode  ปีที่แล้ว +5

      knowing how the py launcher works I don't really trust it

  • @amir.hessam
    @amir.hessam ปีที่แล้ว +1

    as always first comment

    • @rahulprasad2318
      @rahulprasad2318 ปีที่แล้ว +2

      Okay and?

    • @amir.hessam
      @amir.hessam ปีที่แล้ว +5

      @@rahulprasad2318 and see you in the next one 😹