Skip to content

Commit

Permalink
Custom build in container
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Oct 26, 2024
1 parent 88dfe16 commit 072af75
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,21 @@ jobs:
run: |
cd /myproject
python -m pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
#mkdir custom_cx_freeze
#cd custom_cx_freeze
# git clone https://github.com/marcelotduarte/cx_Freeze
# cd cx_Freeze
# python -m pip install --upgrade uv --disable-pip-version-check
# UV_RESOLUTION=highest uv pip install --system --upgrade -r requirements.txt -r requirements-dev.txt -r requirements-doc.txt
# uv pip install --system -e. --no-build-isolation --no-deps --reinstall
# cd ..
#cd ..
# --- This fails:
# python -m pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
# ---
# --- This works
mkdir custom_cx_freeze
cd custom_cx_freeze
git clone https://github.com/marcelotduarte/cx_Freeze
cd cx_Freeze
python -m pip install --upgrade uv --disable-pip-version-check
UV_RESOLUTION=highest uv pip install --system --upgrade -r requirements.txt -r requirements-dev.txt -r requirements-doc.txt
uv pip install --system -e. --no-build-isolation --no-deps --reinstall
cd ..
cd ..
# ---
export PATH="/usr/local/bin:$PATH"
python -m cx_Freeze --script main.py --target-name=executable
Expand Down

0 comments on commit 072af75

Please sign in to comment.