mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
pip-install.yml
This commit is contained in:
parent
2adc21f6fc
commit
c20caee3cb
1 changed files with 29 additions and 0 deletions
29
roles/kolibri/tasks/pip-install.yml
Normal file
29
roles/kolibri/tasks/pip-install.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
- name: Remove previous virtual environment {{ kolibri_venv_path }}
|
||||||
|
file:
|
||||||
|
path: "{{ kolibri_venv_path }}"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Install prep for kolibri
|
||||||
|
pip:
|
||||||
|
name:
|
||||||
|
- pip
|
||||||
|
- wheel
|
||||||
|
- setuptools
|
||||||
|
- legacy-cgi
|
||||||
|
virtualenv: "{{ kolibri_venv_path }}"
|
||||||
|
virtualenv_command: python3 -m venv "{{ kolibri_venv_path }}"
|
||||||
|
extra_args: "--no-cache-dir --prefer-binary"
|
||||||
|
|
||||||
|
- name: Install kolibri {{ kolibri_version_pip }} using pip
|
||||||
|
pip:
|
||||||
|
name: kolibri
|
||||||
|
version: "{{ kolibri_version_pip }}"
|
||||||
|
virtualenv: "{{ kolibri_venv_path }}"
|
||||||
|
virtualenv_command: python3 -m venv "{{ kolibri_venv_path }}"
|
||||||
|
extra_args: "--no-cache-dir --prefer-binary --ignore-requires-python"
|
||||||
|
|
||||||
|
- name: Create {{ kolibri_exec_path }} symlink to {{ kolibri_venv_path }}/bin/kolibri
|
||||||
|
file:
|
||||||
|
src: "{{ kolibri_venv_path }}/bin/kolibri"
|
||||||
|
dest: "{{ kolibri_exec_path }}"
|
||||||
|
state: link
|
Loading…
Add table
Add a link
Reference in a new issue