From 7c035a2cea5e22cc770586fefbe9998cc9740ded Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Mon, 22 Sep 2025 13:01:27 +0200 Subject: [PATCH] Update to python3.12 --- tasks/main.yaml | 12 ++++++------ vars/main.yaml | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index b938379..dec2ff0 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -240,7 +240,7 @@ ansible.builtin.pip: name: "{{ timestamped_deployment_path }}/bec/bec_lib" editable: true - virtualenv_command: python3.11 -m venv + virtualenv_command: "{{ python_version }} -m venv" virtualenv: "{{ bec_venv_path }}" notify: - (Re-)start BEC server @@ -250,7 +250,7 @@ ansible.builtin.pip: name: "{{ timestamped_deployment_path }}/bec/bec_ipython_client" editable: true - virtualenv_command: python3.11 -m venv + virtualenv_command: "{{ python_version }} -m venv" virtualenv: "{{ bec_venv_path }}" - name: Install ophyd_devices @@ -258,7 +258,7 @@ ansible.builtin.pip: name: "{{ timestamped_deployment_path }}/ophyd_devices" editable: true - virtualenv_command: python3.11 -m venv + virtualenv_command: "{{ python_version }} -m venv" virtualenv: "{{ bec_venv_path }}" notify: - (Re-)start BEC server @@ -268,7 +268,7 @@ ansible.builtin.pip: name: "{{ timestamped_deployment_path }}/bec_widgets[pyside6]" editable: true - virtualenv_command: python3.11 -m venv + virtualenv_command: "{{ python_version }} -m venv" virtualenv: "{{ bec_venv_path }}" - name: Install bec_server @@ -276,7 +276,7 @@ ansible.builtin.pip: name: "{{ timestamped_deployment_path }}/bec/bec_server" editable: true - virtualenv_command: python3.11 -m venv + virtualenv_command: "{{ python_version }} -m venv" virtualenv: "{{ bec_venv_path }}" notify: - (Re-)start BEC server @@ -286,7 +286,7 @@ ansible.builtin.pip: name: "{{ timestamped_deployment_path }}/{{ item.key }}" editable: true - virtualenv_command: python3.11 -m venv + virtualenv_command: "{{ python_version }} -m venv" virtualenv: "{{ bec_venv_path }}" loop: "{{ bec_plugins | dict2items }}" notify: diff --git a/vars/main.yaml b/vars/main.yaml index e60fc52..578fced 100644 --- a/vars/main.yaml +++ b/vars/main.yaml @@ -1,4 +1,5 @@ --- +python_version: python3.12 deployment_path: "{{ deployment_path_prefix }}/{{ deployment_name }}_deployments" timestamped_deployment_path: "{{ deployment_path }}/{{ ansible_date_time['iso8601_basic_short'] }}" bec_venv_path: "{{ timestamped_deployment_path }}/bec_venv"