-
Notifications
You must be signed in to change notification settings - Fork 167
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
Add virtualenv to ansible directory #1389
Conversation
In my Linux distribution the default python is python3, thus I was then having issues with the python scripts in the repo where the shabang is `#!/usr/bin/env python`. First idea was to change the shabang to `... python2` but I realized that a virtual env can also help to pin the versions of ansible and libraries eg. Jinja2 and make everyone env consistent.
@maclover7 comments addressed |
I'd prefer the use of P.S. I'm trying to estimate the effort needed to get the plugins python3 compatible |
Sorry if this is a dumb questions, but I assume that virtualenv support is consistent across platforms and available on all linux distros? |
Yes, and so is |
@refack What are the +/- of pipenv versus virtualenv (personally I'm not familiar with it) Would you be willing to file a pull request that implements pipenv, and then we can compare both options side by side? |
Will do. tl;dr:
|
See seggestions in #1399 |
Sorry I've should have asked before proceeding with the implementation. The only reason I didn't go with pipenv is that imho it adds extra features like:
over something that works already well enough on simple cases like the one we have here (I might be underestimating the complexity of the repo). That said, more than happy to use pipenv if you guys thinks it's better/we need this functionalities. |
No worries. I mostly like it because it's newer and is more What I really wanted to do is get the code to be 2/3 compatible (2b5e063). |
@refack good point about this only affecting the ansible host. |
stale, and not what we are doing ATM. |
In my Linux distribution the default python is python3, thus
I was then having issues with the python scripts in the repo
where the shabang is
#!/usr/bin/env python
.First idea was to change the shabang to
... python2
but Irealized that a virtual env can also help to pin the versions of
ansible and libraries eg. Jinja2 and make everyone env consistent.