Comments (9)
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.
cc @rouge8
from shiv.
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.
Does --no-user-cfg
work for this problem?
Relevant issues upstream:
from shiv.
@warsaw only for source dists, not for wheels :(
from shiv.
Well, that's unfortunate. It won't help right away, but we should look into fixing this upstream.
from shiv.
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.
@zvezdan I agree, thanks for clarifying the scope
from shiv.
reverted in #50
from shiv.
Related Issues (20)
- use the python interpreter (to set the shebang line) when running pip HOT 2
- Accept pipenv's Pipfile.lock in place of pip's requirements.txt HOT 3
- Repetition of `site-packages\build\lib\build\lib\...` HOT 1
- support for packages with a .pth file HOT 3
- Run fails if the built app contains more than 65535 files or is over 2GB HOT 1
- ConfigParser issue with duplicate option entries HOT 2
- Shiv ignores files defined in .gitignore without an option to override and add anyway HOT 2
- Error while finding module specification for '__main__' HOT 2
- How to use single shiv zipapp/pyz for multiple python scripts HOT 1
- Error if output path doesn't exist HOT 1
- The shiv of release page should probably be generated on Windows HOT 1
- Any way to use shiv on read-only filesystem? HOT 2
- Is asyncio supported? HOT 1
- Environments created with symlinked folders (by PDM with cache=True) are not correctly packed
- shiv version 1.0.4 reports the incorrect version of 1.0.3
- Shiv with console script prints the __main__ module dictionary to stderr HOT 1
- Windows: Bug in Interpreter Path Handling
- Is there a way to show a message to the user during the environment bootstrapping phase? HOT 3
- Incorrect bootstrap filename HOT 3
- DuplicateOptionError when there is { in entry_points.txt file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shiv.