-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
support for venv --system-site-packages #1393
Comments
As I see, virtual environments creates via I see this as a setting in |
This would be very useful as its a significant space saving - e.g. on a single small repository the difference was 150MB of dependencies - multiply that out and its soon worthwhile. |
someone please revive #1404 :'( |
I agree this functionality would be useful in Poetry, but for the meantime here are some workarounds (cross-posting across related issues): Use case 1) I just want to save space use by my virtualenvs:
Use case 2) I need to use a globally installed package from my poetry venv.
|
Resolves: python-poetry#1393 Co-authored-by: wyl8899 <wyl8899k@gmail.com> Co-authored-by: vlad0337187 <naumovvladislav@mail.ru>
Resolves: python-poetry#1393 Co-authored-by: wyl8899 <wyl8899k@gmail.com> Co-authored-by: vlad0337187 <naumovvladislav@mail.ru>
Resolves: #1393 Co-authored-by: wyl8899 <wyl8899k@gmail.com> Co-authored-by: vlad0337187 <naumovvladislav@mail.ru>
This issue seems to be merged and closed but actually never released? Using Poetry 1.1.13: poetry config virtualenvs.options.system-site-packages true ValueError Setting virtualenvs.options.system-site-packages does not exist |
It looks like it is included in the release notes for 1.2.0a1 |
What's the behaviour of this? Will it default to using the system site package versions when doing |
I wanted to use this in a docker container so I could avoid EDIT: |
@awoimbee Can't you just install whatever dependencies at build time? I would think that dockerizing the environment would obviate a |
@rpdelaney Possible solutions for the application image to inherit packages from the base image:
|
OK, thanks for the explanation. My docker-fu is not strong enough to suggest solutions in that direction... |
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
Adding support for --system-site-packages, as described in venv documentation, makes possible to have a set of base common packages available for a number of virtual environments, thus saving disk space and reducing environment creation time. I believe that this option gives some useful extra flexibility on package and environment management.
The text was updated successfully, but these errors were encountered: