Package managers be like - eviltoast

Sorry Python but it is what it is.

  • rwhitisissle@lemmy.ml
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    Apparently all this shit is needed because python wants to install shit globally by default?

    None of that was needed. It was just used because nobody at your company enforced a single standard for developing your product.

    Afraid you fucked something and want a clean environment? Here’s how you do it with node: delete node_modules/. Done.

    rm -rf venv/. Done.

    Want a clean python env? Uhhhhhhhh use docker I guess?

    python -m venv venv

    Well what’s currently installed? ls node_modules, or use npm ls if you want to be fancy. In python land? Uhhhhhh

    pip freeze. pip list if you want it formatted.

    Let’s update some dep–WHY AREN’T PYTHON PACKAGES USING SEMVER

    Janky, legacy python packages will have random versioning schemes. If a dependency you’re using doesn’t follow semver I would question why you’re using it and seek out an actively maintained alternative.