Git Product home page Git Product logo

Comments (4)

techalchemy avatar techalchemy commented on June 15, 2024

I always thought this was dumb, we should let people screw things up if they want

from passa.

uranusjr avatar uranusjr commented on June 15, 2024

One thing to consider (I think) is a package might be screwing the user. Say a package want to make sure it’s installed by pip 10.0 or later. A package maintainer without understanding well about Python packaging (gotta admit it’s difficult to do), (s)he might list pip>=10.0 in installs_require. This would mean that the user would have pip==18.0 in the lock file, and wouldn’t be able to upgrade to later pip until the lock file is regenerated. But that’s a thing I’d want to avoid. (This is unfortunately a quite common problem in Python packaging; even big-name packages such as pytest tend to list setuptools in installs_require instead of setup_requires and PEP 518, because that has the best compatibility with old versions of pip.)

If the goal is to allow user to screw things up, maybe the best approach is to drop setuptools and pip requirements, unless they are listed in Pipfile. This would be straightforward to do (I think)—just exclude them from the return value of get_dependencies. Requirements listed in Pipfile don’t go through that function, so they won’t be excluded, but other requirements do go through there, and will be prevented from messing with the user.

from passa.

techalchemy avatar techalchemy commented on June 15, 2024

FYI we may want to protect wheel also

from passa.

uranusjr avatar uranusjr commented on June 15, 2024

I don’t think wheel is strictly required to install packages; pip currently falls back to setup.py install if wheel is missing (and when build isolation is disabled). I want to keep the protected set as small as possible; we can always amend it if we need to, but if we protect it now, we may never be able to remove it in the future.

from passa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.