From 9848dc40c82326f39a683016ca801ec50634c4d1 Mon Sep 17 00:00:00 2001 From: Paul-Adrien Cordonnier Date: Wed, 18 Dec 2024 14:52:35 +0100 Subject: [PATCH] feat: add virtualenv command to use to create jupyterlab venv Update tdp_vars_defaults/jupyter/jupyter.yml Co-authored-by: Romain Pignolet --- roles/jupyter/lab/tasks/install.yml | 1 + tdp_vars_defaults/jupyter/jupyter.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/jupyter/lab/tasks/install.yml b/roles/jupyter/lab/tasks/install.yml index 79abeb93..59562a6c 100644 --- a/roles/jupyter/lab/tasks/install.yml +++ b/roles/jupyter/lab/tasks/install.yml @@ -69,6 +69,7 @@ umask: "0022" virtualenv: "{{ jupyterlab_root_dir }}/{{ jupyterlab_release }}" virtualenv_python: "{{ jupyterlab_python_executable }}" + virtualenv_command: "{{ jupyterlab_virtualenv_command }}" - name: Install Jupyterlab in virtual env ansible.builtin.pip: diff --git a/tdp_vars_defaults/jupyter/jupyter.yml b/tdp_vars_defaults/jupyter/jupyter.yml index 0f3b7789..7eb1ef15 100644 --- a/tdp_vars_defaults/jupyter/jupyter.yml +++ b/tdp_vars_defaults/jupyter/jupyter.yml @@ -161,6 +161,7 @@ jupyterlab_dist_file: "{{ jupyterlab_release }}.tar.gz" jupyterlab_upload_directory: "{{ binaries_upload_dir }}" jupyterlab_python_executable: "python3.6" +jupyterlab_virtualenv_command: "{{ jupyterlab_python_executable }} -m venv" # Jupyterlab installation directory jupyterlab_root_dir: "{{ tdp_extra_root_dir }}"