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
Standardize python setup, ensure homu gets python3 #148
Changes from 1 commit
File filter...
Jump to…
Install python, pip, virtualenv on OS X
- Loading branch information
| @@ -1,39 +1,34 @@ | ||
| {% from tpldir ~ '/map.jinja' import config with context %} | ||
| {% if grains['kernel'] != 'Darwin' %} | ||
| # Ubuntu has python2 as default python | ||
| python2: | ||
| pkg.installed: | ||
| - pkgs: | ||
| - python | ||
| - python-dev | ||
| python3: | ||
| {% if grains['os'] == 'Ubuntu' %} | ||
| python2-dev: | ||
| pkg.installed: | ||
| - pkgs: | ||
| - python3 | ||
| - python-dev | ||
| {% endif %} | ||
| # Ensure pip is default by purging pip3 | ||
| pip: | ||
| pkg.installed: | ||
| - pkgs: | ||
| {% if grains['os'] == 'Ubuntu' %} | ||
| - python-pip | ||
| {% elif grains['os'] == 'MacOS' %} | ||
| - python # pip is included with python in homebrew | ||
| {% endif %} | ||
| - reload_modules: True | ||
| pip3: | ||
| pkg.purged: | ||
| - pkgs: | ||
| - python3-pip | ||
| # Virtualenv package creates virtualenv and virtualenv-3.4 executables | ||
aneeshusa
Author
Member
|
||
| virtualenv: | ||
| pip.installed: | ||
| - pkgs: | ||
| - virtualenv | ||
| - require: | ||
| - pkg: pip | ||
| - pkg: pip3 | ||
| {% endif %} | ||
| servo: | ||
| user.present: | ||
In my experience I needed to
pip3 install virtualenvbefore I got virtualenv3. Should we make two keys here, one withbin_env: pipand one withbin_env: pip3?