Commit ac36b37f by John Jarvis

using edx pypy mirror for edxapp and common

parent 60466be4
......@@ -8,3 +8,4 @@ common_debian_pkgs:
- tree
- git
- unzip
common_pip_index_url: 'https://pypy.edx.org/root/pypi/+simple/'
......@@ -11,13 +11,19 @@
- install
- name: common | pip install virtualenv
pip: name=virtualenv state=present
pip: >
name=virtualenv
state=present
extra_args="-i {{ common_pip_index_url }}"
tags:
- venv_base
- install
- name: common | pip install virtualenvwrapper
pip: name=virtualenvwrapper state=present
pip: >
name=virtualenvwrapper
state=present
extra_args="-i {{ common_pip_index_url }}"
tags:
- venv_base
- install
......@@ -35,7 +41,11 @@
- install
- name: common | pip install gunicorn
pip: name=gunicorn virtualenv="{{venv_dir}}" state=present
pip: >
name=gunicorn
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags:
- gunicorn
- install
......@@ -108,7 +108,11 @@
# Install the python pre requirements into {{ venv_dir }}
- name : install python pre-requirements
pip: requirements="{{pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present
pip: >
requirements="{{pre_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags:
- lms
- cms
......@@ -120,7 +124,7 @@
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ base_requirements_file }}
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ common_pip_index_url }} --exists-action w --use-mirrors -r {{ base_requirements_file }}
tags:
- lms
- cms
......@@ -129,7 +133,11 @@
# Install the python post requirements into {{ venv_dir }}
- name : install python post-requirements
pip: requirements="{{post_requirements_file}}" virtualenv="{{venv_dir}}" state=present
pip: >
requirements="{{post_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags:
- lms
- cms
......@@ -141,7 +149,7 @@
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ item }}
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ common_pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
with_items:
- "{{ repo_requirements_file }}"
- "{{ github_requirements_file }}"
......@@ -158,7 +166,7 @@
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ item }}
shell: cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ common_pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
with_items:
- "{{ sandbox_base_requirements }}"
- "{{ sandbox_local_requirements }}"
......
......@@ -14,7 +14,11 @@
apt: pkg={{','.join(edxlocal_debian_pkgs)}} install_recommends=yes state=present
- name: edxlocal | install python pymongo for mongo_user ansible module
pip: name=pymongo state=present version=2.6.3
pip: >
name=pymongo
state=present
version=2.6.3
extra_args="-i {{ common_pip_index_url }}"
- name: edxlocal | create a database for edxapp
mysql_db: >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment