Skip to content

Instantly share code, notes, and snippets.

@migonzalvar
Last active January 3, 2016 09:09
Show Gist options
  • Save migonzalvar/8440750 to your computer and use it in GitHub Desktop.
Save migonzalvar/8440750 to your computer and use it in GitHub Desktop.

Enable offline install using pip

This works as expected:

# export PIP_NO_INDEX=true
# export PIP_FIND_LINKS=http://xsce.activitycentral.com/wheelhouse/pip/
# pip install http://xsce.activitycentral.com/wheelhouse/pip/ajenti-0.99.34-patched5.tar.gz
# pip install http://xsce.activitycentral.com/wheelhouse/pip/wondershaper-0.3.tar.gz

In ansible:

- name: install ajenti from Pypi
  pip: name=http://xsce.activitycentral.com/wheelhouse/pip/ajenti-0.99.34-patched5.tar.gz
       extra_args='--no-index --find-links=http://xsce.activitycentral.com/wheelhouse/pip/'
  tags:
    - download
  notify:
    - restart ajenti service

and also:

- name: install wondershaper ajenti plugin
  pip: name=http://xsce.activitycentral.com/wheelhouse/pip/ajenti-plugin-wondershaper-0.3.tar.gz
       extra_args='--no-index --find-links=http://xsce.activitycentral.com/wheelhouse/pip/'
  tags:
    - download
  notify:
    - restart ajenti service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment