I’ve been trying to get luarocks to work on windows, and all it gives is cryptic gcc errors.

How does pip manage to work on most platforms without issues?

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    28
    arrow-down
    1
    ·
    22 days ago

    I’m surprised to hear you say this because in all honesty, pip really sucks as far as package managers go. uv is a worthy replacement.

    • sus@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      22 days ago

      I think this is talking about basic functionality, eg. can you do basic stuff with a clean install without everything immediately breaking

      There’s a lot of programming tools that are primarily developed for and on linux, and “windows support” is an afterthought which will result in linux being a very frictionless experience but windows being a minefield of problems and requiring careful manual setup

      • GissaMittJobb@lemmy.ml
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        22 days ago

        Maybe so, but pip is years behind package managers like cargo. It really is not particularly good.

  • gid@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    15
    ·
    22 days ago

    If you’re getting gcc errors it sounds like the package you’re trying to install contains some c/c++ stuff that needs compiling.

    A lot of python packages that rely on things written in c/c++ ship those precompiled, which might account for why it feels easier for you.

  • sexual_tomato@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    11
    ·
    22 days ago

    It’s a 17 year old tool in the world’s most popular scripting language. It’s effectively had billions of tests run against it.

  • Corbin@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    21 days ago

    Pick a language like Perl, where some packages are written in C and some are written in pure Perl, and you’ll get to experience the same cryptic GCC errors, sometimes. There’s no secret to pip; many Python developers upload wheels with pre-compiled binaries, including Windows-compatible binaries, and so you don’t have to run GCC because they already did it for you.

    • logging_strict@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      14 days ago

      another interesting thing is optimizing runtime using mypyc. This is how our dev toolchain is so quick.

      mypy, flake8, isort, … these kinda packages

      Have never tried using mypyc would appreciate anyone sharing their experience with mypyc or other Python package compilers.