From fd39b2ae800dc433a724f4e5e20c691e2ed5d2da Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Thu, 12 Feb 2026 08:03:01 -0500 Subject: [PATCH] Fix CI build: ensure bin/python symlink exists for virtualenv-clone Python 3.12 venv may only create bin/python3 and bin/python3.12 without a bin/python symlink. virtualenv-clone 0.5.7 expects bin/python to exist when introspecting the cloned venv, causing FileNotFoundError. --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e13111..aced2fe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,6 +25,8 @@ build: - tar -zcf static.tar.gz static # Clean up the directory outside of the gitlab-runner filesystem. - rm -rf /opt/make_post_sell/env + # Ensure bin/python symlink exists (Python 3.12 venv may only create python3). + - test -f env/bin/python || ln -sf python3 env/bin/python # Clone the virtualenv with virtualenv-clone into the desired location. - virtualenv-clone -vvv $PWD/env /opt/make_post_sell/env # Create a tarball of the virtualenv.