-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv install --system <pkg>
and pipenv update --system
#5584
Comments
PS: I forgot to include the error messages I get with pipenv 2022.12.19. $ pipenv install --system pkg
Loading .env environment variables...
Warning: --system is intended to be used for Pipfile installation, not installation of specific packages. Aborting.
Usage: pipenv install [OPTIONS] [PACKAGES]...
ERROR:: See also: {} --deploy flag
$ pipenv update --system
Loading .env environment variables...
Usage: pipenv update [OPTIONS] [PACKAGES]...
Try 'pipenv update -h' for help.
Error: No such option: --system |
@bblanchon you might be interested in my very recent work on an Its my answer to getting rid of |
@matteius, I'm OK with |
@bblanchon |
Plus that branch removes one of the flawed validation checks on the |
I've taken a stab at updating the |
Hi @matteius, |
@bblanchon not really -- revisiting the system flag is one of the next big things on the list though after releasing the refactor away from requirementslib which is out for PR and solves a number of edge cases with extras installs. |
OK, no problem; I'll continue calling pipenv twice. |
Hi,
Thank you very much for pipenv; I love this tool ❤️
Is your feature request related to a problem? Please describe.
I'm using pipenv to install Python dependencies in Docker containers.
I don't want to use virtual environments because Docker already provides this isolation.
Therefore, I call
pipenv install --system
to install the packages globally.So far, so good.
However, every time I need to add a new dependency, I need to run two commands:
Similarly, every time I need to update the dependencies, I must do:
Describe the solution you'd like
Allow
--system
to be combined with package installation, like so:Similarly, allow
--system
with theupdate
command like so:This feature should work transparently with
PIPENV_SYSTEM
so that one can run regular pipenv commands without worrying if in a container or a virtual environment.Describe alternatives you've considered
I'm currently using the two-command solution described above.
They work but are error-prone and create an unused virtual environment.
Additional context
I'm using Docker, not only for production but also for development, using devcontainers.
That's why I need to update and install packages frequently.
The text was updated successfully, but these errors were encountered: