wishlist: option to selectively link a few global site-packages

Bug #376506 reported by Carl Meyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Virtualenv
New
Undecided
Unassigned

Bug Description

It would be really slick to be able to selectively specify a few global site-packages to link into the virtualenv, while ignoring the rest. I often find that I have a couple dependencies which are compiled C code, flaky to install inside the virtualenv, and always available via my OS package manager. I'd like to be able to just link those into the virtualenv while ignoring all other global packages. (Of course this can be done manually right now, but it'd be nice to automate it).

Revision history for this message
Ian Bicking (ianb) wrote :

I'd be open to this option in pip (though I'm not 100% sure what the command would look like), but it doesn't really fit into the scope of virtualenv.

Revision history for this message
Carl Meyer (carljm) wrote :

OK. I thought it fit alongside --no-site-packages, i.e. I could do "virtualenv --no-site-packages my_new_venv" or instead "virtualenv --site-packages=PIL,psycopg2 my_new_venv". But if that's out of scope for virtualenv I'll file a wishlist issue on pip's Trac.

Revision history for this message
Ian Bicking (ianb) wrote :

From a workflow perspective it never made sense to me in virtualenv, because then if you miss a package, do you recreate the environment? Or if you add a package to the system? virtualenv is more a run-once tool, and pip more a run-many tool.

Revision history for this message
Carl Meyer (carljm) wrote :

Wontfix - not porting this to new issue tracker at github.com/pypa/virtualenv

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.