Skip to content

Instantly share code, notes, and snippets.

@felipellrocha
Created July 4, 2013 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipellrocha/5929306 to your computer and use it in GitHub Desktop.
Save felipellrocha/5929306 to your computer and use it in GitHub Desktop.
python-pkgs:
pkg.installed:
- pkgs:
- python-virtualenv
- python-dev
- libpq-dev
python-imaging-deps:
pkg.installed:
- pkgs:
- libtiff4-dev
- libjpeg8-dev
- zlib1g-dev
- libfreetype6-dev
- liblcms1-dev
- libwebp-dev
pip-command:
cmd.run:
- name: easy_install pip
- unless: test -f /usr/local/bin/pip
- require:
- pkg: python-pkgs
/home/vagrant/env:
virtualenv.managed:
- no_site_packages: True
- runas: vagrant
- requirements: salt://requirements/requirements
- require:
- pkg: python-dev
- pkg: python-virtualenv
- pkg: libpq-dev
# State: - virtualenv
# Name: /home/vagrant/env
# Function: managed
# Result: False
# Comment: The following requisites were not found:
# require: {'pkg': 'python-dev'}
# require: {'pkg': 'python-virtualenv'}
# require: {'pkg': 'libpq-dev'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment