actions: install scons for staticx (needed for arm64)

This commit is contained in:
Jay Lee 2025-01-16 13:46:27 -05:00 committed by GitHub
parent 91db5e5c45
commit a4eff89658
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -553,7 +553,6 @@ jobs:
# https://github.com/pyinstaller/pyinstaller/issues/7102 # https://github.com/pyinstaller/pyinstaller/issues/7102
export PATH="$(dirname ${PYTHON}):/usr/bin" export PATH="$(dirname ${PYTHON}):/usr/bin"
fi fi
#if ([ "${staticx}" != "yes" ] && [ "$RUNNER_OS" != "Windows" ]); then
if [[ "$staticx" != "yes" ]]; then if [[ "$staticx" != "yes" ]]; then
export PYINSTALLER_BUILD_ONEDIR=yes export PYINSTALLER_BUILD_ONEDIR=yes
fi fi
@ -599,6 +598,9 @@ jobs:
- name: Install StaticX - name: Install StaticX
if: matrix.staticx == 'yes' if: matrix.staticx == 'yes'
run: | run: |
sudo apt-get -qq --yes update
# arm64 needs to build a wheel and needs scons to build
sudo apt-get -qq --yes install scons
"${PYTHON}" -m pip install --upgrade patchelf-wrapper "${PYTHON}" -m pip install --upgrade patchelf-wrapper
"${PYTHON}" -m pip install --upgrade staticx "${PYTHON}" -m pip install --upgrade staticx