diff --git a/action.yml b/action.yml index 345b2cd..4c43f4b 100644 --- a/action.yml +++ b/action.yml @@ -16,7 +16,7 @@ inputs: default: 'true' python_version: description: 'Python version to install' - default: '3.10' + default: '3.12' numpy_version: description: 'numpy version to install' default: 'latest' @@ -259,7 +259,7 @@ runs: echo "----------------------------------" # Upgrade pip - $PYTHON_EXE -m pip install --upgrade pip + $PYTHON_EXE -m pip install --upgrade pip --break-system-packages # Set SOFA_VERSION_FOR_DEPS SOFA_VERSION_FOR_DEPS="$(echo "${{ inputs.sofa_version }}" | sed 's:[^0-9]*::g')" @@ -272,14 +272,14 @@ runs: shell: bash run: | if [[ "${{ inputs.numpy_version }}" == "latest" ]]; then - $PYTHON_EXE -m pip install numpy requests + $PYTHON_EXE -m pip install numpy requests --break-system-packages else - $PYTHON_EXE -m pip install numpy==${{ inputs.numpy_version }} requests + $PYTHON_EXE -m pip install numpy==${{ inputs.numpy_version }} requests --break-system-packages fi if [[ "${{ inputs.scipy_version }}" == "latest" ]]; then - $PYTHON_EXE -m pip install scipy requests + $PYTHON_EXE -m pip install scipy requests --break-system-packages else - $PYTHON_EXE -m pip install scipy==${{ inputs.scipy_version }} requests + $PYTHON_EXE -m pip install scipy==${{ inputs.scipy_version }} requests --break-system-packages fi echo '---- pip show numpy scipy ----' $PYTHON_EXE -m pip show numpy scipy requests @@ -295,7 +295,7 @@ runs: - name: Install pybind11 ${{ inputs.pybind11_version }} shell: bash run: | - $PYTHON_EXE -m pip install pybind11==${{ inputs.pybind11_version }} + $PYTHON_EXE -m pip install pybind11==${{ inputs.pybind11_version }} --break-system-packages pybind11_DIR="pybind11-dir-not-found" if [ -e "$(command -v pybind11-config)" ]; then pybind11_DIR="$(pybind11-config --cmakedir)" @@ -432,7 +432,7 @@ runs: # Release was not found on GitHub, try to get it from Jenkins python3 $WORKSPACE_CI_PATH/scripts/getLatestSOFANightly.py ${{ github.token }} "${{ runner.temp }}/sofa_tmp/" --os ${ARTIFACT_OS} -n 1 -b ${{ inputs.sofa_version }} -e any - unzip -qq ${{ runner.temp }}/sofa_tmp/latest/${ARTIFACT_OS}*/SOFA_* -d "${{ runner.temp }}/sofa_tmp/binaries" + unzip -qq "${{ runner.temp }}"/sofa_tmp/latest/${ARTIFACT_OS}/SOFA_* -d "${{ runner.temp }}/sofa_tmp/binaries" $SUDO mkdir -p "${{ inputs.sofa_root }}" $SUDO mv "${{ runner.temp }}"/sofa_tmp/binaries/SOFA_*/* "${{ inputs.sofa_root }}"