Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
password: ${{ secrets.B2_PYPI_PASSWORD }}
deploy-linux-bundle:
needs: deploy
env:
PYTHON_DEFAULT_VERSION: "3.10" # Use Ubuntu 22.04's distro Python for staticx.
UV_PYTHON_DOWNLOADS: "never"
strategy:
fail-fast: false
matrix:
Expand All @@ -77,19 +80,15 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }}
uses: deadsnakes/action@v3.2.0 # staticx doesn't work with python installed by setup-python action
with:
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
- uses: astral-sh/setup-uv@v7
with:
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install patchelf scons
uv sync --python ${{ env.PYTHON_DEFAULT_VERSION }} --locked --group nox
sudo apt-get -y install python${{ env.PYTHON_DEFAULT_VERSION }}-dev python${{ env.PYTHON_DEFAULT_VERSION }}-venv patchelf scons
uv sync --python /usr/bin/python${{ env.PYTHON_DEFAULT_VERSION }} --locked --group nox
git config --global --add safe.directory '*'
- name: Bundle the distribution
id: bundle
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ jobs:
timeout-minutes: 90
needs: cleanup_buckets
env:
PYTHON_DEFAULT_VERSION: "3.10" # Use Ubuntu 22.04's distro Python for staticx.
UV_PYTHON_DOWNLOADS: "never"
B2_TEST_APPLICATION_KEY: ${{ secrets.B2_TEST_APPLICATION_KEY }}
B2_TEST_APPLICATION_KEY_ID: ${{ secrets.B2_TEST_APPLICATION_KEY_ID }}
WORKFLOW_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}
Expand All @@ -207,19 +209,15 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }}
uses: deadsnakes/action@v3.2.0 # staticx doesn't work with python installed by setup-python action
with:
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
- uses: astral-sh/setup-uv@v7
with:
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install patchelf scons
uv sync --python ${{ env.PYTHON_DEFAULT_VERSION }} --locked --group nox
sudo apt-get -y install python${{ env.PYTHON_DEFAULT_VERSION }}-dev python${{ env.PYTHON_DEFAULT_VERSION }}-venv patchelf scons
uv sync --python /usr/bin/python${{ env.PYTHON_DEFAULT_VERSION }} --locked --group nox
git config --global --add safe.directory '*'
- name: Bundle the distribution
id: bundle
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+linux-bundle-distro-python.infrastructure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Build standalone Linux executables with Ubuntu 22.04's system Python 3.10, removing the dependency on the deadsnakes PPA in CI and release builds.
Loading