Commit 094ba823 by Fred Smith

pip - wipe existing requirements on name conflict

parent ff9f7c49
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
requirements="{{ pre_requirements_file }}" requirements="{{ pre_requirements_file }}"
virtualenv="{{ edxapp_venv_dir }}" virtualenv="{{ edxapp_venv_dir }}"
state=present state=present
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}" extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
environment: "{{ edxapp_environment }}" environment: "{{ edxapp_environment }}"
when: not inst.stat.exists or new.stat.md5 != inst.stat.md5 when: not inst.stat.exists or new.stat.md5 != inst.stat.md5
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
requirements="{{ post_requirements_file }}" requirements="{{ post_requirements_file }}"
virtualenv="{{ edxapp_venv_dir }}" virtualenv="{{ edxapp_venv_dir }}"
state=present state=present
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}" extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
environment: "{{ edxapp_environment }}" environment: "{{ edxapp_environment }}"
when: not inst.stat.exists or new.stat.md5 != inst.stat.md5 when: not inst.stat.exists or new.stat.md5 != inst.stat.md5
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
requirements="{{ paver_requirements_file }}" requirements="{{ paver_requirements_file }}"
virtualenv="{{ edxapp_venv_dir }}" virtualenv="{{ edxapp_venv_dir }}"
state=present state=present
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}" extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
environment: "{{ edxapp_environment }}" environment: "{{ edxapp_environment }}"
when: not inst.stat.exists or new.stat.md5 != inst.stat.md5 when: not inst.stat.exists or new.stat.md5 != inst.stat.md5
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
requirements="{{ custom_requirements_file }}" requirements="{{ custom_requirements_file }}"
virtualenv="{{ edxapp_venv_dir }}" virtualenv="{{ edxapp_venv_dir }}"
state=present state=present
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}" extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
environment: "{{ edxapp_environment }}" environment: "{{ edxapp_environment }}"
when: custom_requirements.stat.exists and new.stat.md5 != inst.stat.md5 when: custom_requirements.stat.exists and new.stat.md5 != inst.stat.md5
......
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