-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
"pipenv install --system" breaks when installing from requirements.txt #1792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@nottrobin Pipenv really can't be used like this. Using You can then |
@techalchemy From a zoomed-out perspective, I can't see any reason why the parsing of In my opinion the great thing about This is sort of the case in my use-case. In my team, we run all our apps and their dependencies through a Docker image, so those dependencies needn't pollute the dev's system nor be effected by the existing state of the dev's system. In the context of this docker image, it doesn't make much sense to ask It would be really nice to be able to take advantage of |
@nottrobin just because you can’t see why it’s related to environment management doesn’t mean it isn’t. Dependency resolution demands an isolated environment. If you can build a revolver that doesn’t require this we would be happy to evaluate it. If you are never going to install anything anywhere besides a docker container and you insist that that is the only place dependency resolution can ever happen and your developers can’t or won’t use a virtualenv to make a lockfile, then you should just use pip directly as it will be much faster and accomplish the same thing. |
I'm saying that it always used to be up to the python dev to understand which environment they were using, and it doesn't seem unreasonable to still give them the option to still have that control. In my case I know that the system is the environment I care about.
As I say, the really valuable thing about |
As I explained, generating a lockfile requires isolation. That isn’t a decision we made because we want to be jerks. If you think you can improve upon it, contributions are welcome. Currently you can’t build a lockfile without a virtualenv. Period. |
Ah. Sorry I didn't quite understand that technical limitation from your comment before. I see now. Yes maybe one day when I've got some free time I might delve into the way the lockfile generation works and see if I can make any suggestions. For now, suffice to say it would be nice for it to work with system python, but I understand if this is not possible. My solution for now is to simply instruct people in our team who want to upgrade projects that still use [sudo] pip install pipenv
pipenv install
pipenv --rm
[sudo] pip uninstall pipenv
rm requirements.txt |
@techalchemy would you say that npm not having a virtual environment for their package locking makes it unreliable? |
From what I can tell this is a bug in either the
which
function or the use of thewhich
function. I'm guessing that theallow_global
option isn't set when it should be.The text was updated successfully, but these errors were encountered: