Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include only selected packages from the global site-packages #79

Closed
pytoxbot opened this issue Sep 17, 2016 · 2 comments
Closed

include only selected packages from the global site-packages #79

pytoxbot opened this issue Sep 17, 2016 · 2 comments

Comments

@pytoxbot
Copy link

With the option sitepackages set to True, it is possible to access all the packages from the global site-packages directory. However, it is not possible to include only certain packages from the global site-packages directory. It would be a useful feature to have a config option like globalpackages to define a list of packages which should be linked to the current active virtualenv.

@pytoxbot
Copy link
Author

Original comment by @hpk42

You can put things like $(which coverage python-coverage|head -n 1) into
a shell script and call it from the tox commands, though.

Otherwise i don't think we can do anything about the sitepackages logic --
this is really core functionality of virtualenv which tox is merely using
and not meddling with itself.

@pytoxbot
Copy link
Author

Original comment by rhertzog

I would definitely love such an option. I have to use sitepackages=True because some Python modules such as python-apt come from the debian system and are not available via pip. But then there are other modules such as coverage that I don't want to take from the system because the debian package (rightfully) renames the script to python-coverage while the pip installed module provives a "coverage" script and I can't support both names with tox...

I tried using $(which coverage python-coverage|head -n 1) but shell substitution is not allowed. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant