Skip to content

Missing site.get*() methods on 3.2 and later #434

Closed
@zooba

Description

@zooba

For CPython 3.2 and later, site.py includes function getsitepackages(), getuserbase() and getusersitepackages() - ref

The site module that virtualenv adds to a new environment does not include these, and so code that expects them will not work.

Though the docs say that the module-level variables may not be initialized until these methods are called, I don't see anything there that requires lazy initialization. I'd expect that simply returning the variables would be sufficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions