Skip to content

Shared modules across venvs #12368

Closed
Closed
@jaggzh

Description

@jaggzh

What's the problem this feature will solve?

Duplication/disk-space use of redundant modules across venvs, installation time, etc.

Describe the solution you'd like

This might be more appropriate for python venv, conda, etc. projects... BUT... what if we have a location where the versions of our modules are installed, and pip (and python/venvs) use this location, and the required version, OR use symlinks to those versions.
This would:

  1. Allow the re-use of already-installed modules
  2. Leading to preventing the need to duplicate them several, or even dozens of times across projects/venvs
  3. Increase system speed

With links/shortcuts, one wouldn't even need to do reference count tracking.

Alternative Solutions

Hmm. No.

Additional context

I'm not sure how it would best be implemented, while [potentially] honoring different virtual environment types, except if the user sets up some optional paths to use. But I think the cleanliness of it requires the ability for the links to be handled by the pip system. Not sure.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions