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.
This commit is contained in:
parent
0967e4d6fb
commit
fd39b2ae80
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue