Giter VIP home page Giter VIP logo

Comments (9)

anthrotype avatar anthrotype commented on August 26, 2024 1

How about checking for the presence of the incompatible prefix option in pydistutils, and stop with an error message, prompting the user to pass an additional shiv command line option to enable the trick?

from shiv.

lorencarvalho avatar lorencarvalho commented on August 26, 2024

cc @rouge8

from shiv.

rouge8 avatar rouge8 commented on August 26, 2024

I would say go for whichever you think is the more important use case. I think pypa/pip#4557 is the upstream pip issue which looks like it's back to life and will hopefully make it into the next pip release 🤞

from shiv.

warsaw avatar warsaw commented on August 26, 2024

Does --no-user-cfg work for this problem?

Relevant issues upstream:

from shiv.

lorencarvalho avatar lorencarvalho commented on August 26, 2024

@warsaw only for source dists, not for wheels :(

from shiv.

warsaw avatar warsaw commented on August 26, 2024

Well, that's unfortunate. It won't help right away, but we should look into fixing this upstream.

from shiv.

zvezdan avatar zvezdan commented on August 26, 2024

It gets worse though, even without an enterprise build system.

Here's a simple experiment that proves how broken this is.
Build something with shiv (project A) in one terminal session and in another build another app that does not use shiv (project B) -- at the same time. For example start commands one after the other. The project B build will break because of the custom ~/.pydistutils.cfg stored during its build from project A build.

This proves that changing shared distutils settings in ~/pydistutils.cfg is not an acceptable solution at all, under any circumstances. If the build is going to change distutils settings at all, it must do that local to the project built by shiv only.

Thus, as I suggested, let's revert this bug, to get a good release, and than carefully plan a workaround for homebrew Python users that is localized to one project build.

from shiv.

lorencarvalho avatar lorencarvalho commented on August 26, 2024

@zvezdan I agree, thanks for clarifying the scope

from shiv.

lorencarvalho avatar lorencarvalho commented on August 26, 2024

reverted in #50

from shiv.

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.