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

Updated install scripts to allow user defined virtualenv directory #37

Open
wants to merge 3 commits into
base: ncsdk2
Choose a base branch
from

Conversation

gayoso
Copy link

@gayoso gayoso commented Nov 8, 2019

Added a variable to the config file: VIRTUALENV_PATH
Now instead of being predefined, the virtualenv is activated or created in the specified directory. Default value is the same as the previous predefined path.
If created, ownership is then given to the current user to avoid 'permission denied' errors for creating the virtualenv using sudo.

Also changed install script to only install api calling "pip" when using virtualenv, instead of calling "pip2" and "pip3" separately. As virtualenv only has one python version, this caused the api to be installed for the virtualenv but also for the local user on one version of python.

Finally, changed uninstall script to activate virtualenv before uninstalling.

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.

1 participant