# All the build essentials to install python with up to date setuptools, pip
packages:
  pkg:
    - installed
    - names:
      - build-essential
      - wget
      - curl
      - python-dev

# Install the most recent version of setuptools
setuptools:
  cmd.run:
    - name: wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python2.7

# Install the most recent version of pip, manually
pippin:
  cmd.run:
    - name: curl --show-error --retry 5 https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7
    - reload_modules: true

virtualenv:
  pip.installed:
    - reload_modules: true
  require:
    - cmd: python-pip


# All the build essentials to install python with up to date setuptools, pip
base-deps:
  pkg:
    - installed
    - names:
      - build-essential
      - wget
      - curl
      - python-dev

# Install the most recent version of setuptools
setuptools:
  cmd.run:
    - name: wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python2.7

# Install the most recent version of pip, manually
pippin:
  cmd.run:
    - name: curl --show-error --retry 5 https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7
    - reload_modules: true

virtualenv:
  pip.installed:
    - reload_modules: true
  require:
    - cmd: python-pip


Make package ID unique across python, nbviewer states
Make package ID unique across python, nbviewer states

iamjakob/salt-states-nbviewer