Skip to content

Commit

Permalink
U2404 python2
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonau committed Mar 4, 2024
1 parent 918758f commit 3ae591a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/kalite/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
virtualenv_command: virtualenv # Traditionally /usr/bin/virtual/env -- but install_python2.sh (for Ubuntu 23.10+) sets up /usr/local/bin/virtualenv
virtualenv_python: python2.7
extra_args: "--no-use-pep517 --no-cache-dir --no-python-version-warning"
when: ((is_debian_11 is defined and is_debian_11) or (is_ubuntu_2204 is defined and is_ubuntu_2204)) # Also avoids is_raspbian_11 and is_linuxmint_21, and is more future-proof than...
#when: not (is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19)
# long form of (is_debian_11+ or is_ubuntu_20+)

Expand All @@ -60,6 +61,11 @@
virtualenv_command: virtualenv
virtualenv_python: python2.7
extra_args: "--no-cache-dir"
when: not (is_ubuntu_2404 is defined and is_ubuntu_2404)

- name: Use scripts/U2404_python2.sh to install python2 and virtualenv
command: "{{ iiab_dir }}/scripts/U2404_python2.sh"
when: (is_ubuntu_2404 is defined and is_ubuntu_2404)

- name: "Install from templates: venv wrapper /usr/bin/kalite, unit file /etc/systemd/system/kalite-serve.service"
template:
Expand Down

0 comments on commit 3ae591a

Please sign in to comment.