Skip to content

Expose libpath in venv.EnvBuilder.ensure_directories return value #94214

Description

@pradyunsg

Feature or enhancement

venv.EnvBuilder.ensure_directories should set libpath as an attribute in the return value.

Pitch

Currently, the value is not exposed in any way via the venv API. This means that API users of venv (ahem... pip) need to recompute this information, coupling strongly to the implementation details of this module.

I noticed this as part of working on pip's build isolation logic, which I'm trying to port to venv.

Previous discussion

This hasn't been discussed extensively yet, but I've posted about this on https://discuss.python.org/t/16796/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions