Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

toggleglobalsitepackages capability #63

Copy link
Copy link

Description

@SiggyF
Issue body actions

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)?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.