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

Don't install virtualenv as user. #329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FedericoRessi
Copy link
Contributor

@FedericoRessi FedericoRessi commented Jun 7, 2018

Package installation as user would fail in the case python is running inside an user virtualenv. I personally think this playbook should limit to check virtualenv is installed more than actually installing it because it is out of its scope. Most of the time virtualenv is already installed in a machine where python is installed. Some time it is not and for such few cases a regular "pip install virtualenv" should be enough. Once virtualenv is installed, I think we should install packages inside virtualenvs specific for tools to be installed instead of using --user. The reason is installing tools as root or as user has the same problem of not taking in account two or more tools could have non compatible requirements and for such cases, virtualenv is the right solution.

@FedericoRessi FedericoRessi force-pushed the fix-shade-virtualenv branch from 77f914b to 5893944 Compare June 7, 2018 14:53
@FedericoRessi FedericoRessi force-pushed the fix-shade-virtualenv branch from 5893944 to 874440d Compare June 7, 2018 15:01
@obaranov
Copy link
Contributor

obaranov commented Jun 7, 2018

@FedericoRessi, Can you please provide more info why you you need that change, cause we recently switched to the --user mode installation?
Also looks like you're from redhat. Can you please submit patches to the gerrithub? See details here: http://infrared.readthedocs.io/en/latest/contribute.html#red-hatters

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

Successfully merging this pull request may close these issues.

2 participants