You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my platform (macports, py310, py310-virtualenv) the toggleglobalsitepackages is no longer working.
Virtualenvwrapper creates an environment with CPython3Posix. This results in a virtualenv with a pyvenv.cfg file.
This pyvenv.cfg now contains the setting include-system-site-packages = false. It no longer seems to look at the no-global-site-packages.txt which is generated/removed by the toggleglobalsitepackages.
I noticed that in the current master this function is being removed. I think it could be re-implemented to toggle the value in the pyvenv.cfg.
Proposed solution
I think the include-system-site-packages = false should be changed when the toggleglobalsitepackages function is called.
Notes
I'd be happy to prepare a pull request if you agree with the proposed solution. Would a "grep" / "sed" call be the expected implementation (as the other functions are implemented in sh)?
On my platform (macports, py310, py310-virtualenv) the
toggleglobalsitepackagesis no longer working.Virtualenvwrapper creates an environment with CPython3Posix. This results in a virtualenv with a
pyvenv.cfgfile.This
pyvenv.cfgnow contains the settinginclude-system-site-packages = false. It no longer seems to look at theno-global-site-packages.txtwhich is generated/removed by thetoggleglobalsitepackages.I noticed that in the current master this function is being removed. I think it could be re-implemented to toggle the value in the pyvenv.cfg.
Proposed solution
I think the
include-system-site-packages = falseshould be changed when thetoggleglobalsitepackagesfunction is called.Notes
I'd be happy to prepare a pull request if you agree with the proposed solution. Would a "grep" / "sed" call be the expected implementation (as the other functions are implemented in sh)?