Open tcompa opened 4 weeks ago
See https://github.com/fractal-analytics-platform/fractal-server/issues/1997 for folder structure
Steps:
wheel_path
is given, copy that file (via shutil.cp
) to taskgroup.path
taskgroup.wheel_file
with the new path.Note: step 1 must be executed after the mkdir
statements.
When a user provides the path to a wheel file, it could be e.g.
/random/dir/fractal_tasks_mock-0.0.1-py3-none-any.whl
. Before the actualpip install
operation, we should/somewhere/{user_id}/fractal-tasks-mock/0.0.1/
).TaskGroupV2.wheel_path
.This way, the pip-freeze will include data like this
which will be reproducible even after deactivation.
TLDR: we cannot rely on the user-provided wheel to still exist, when we'll have to re-activate the venv.