mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Make setup python tools work with python 3.12
This commit is contained in:
parent
ac8d40735e
commit
6b1cd9e720
3 changed files with 5 additions and 2 deletions
|
@ -54,10 +54,13 @@ runs:
|
|||
working-directory: ${{ inputs.cwd }}
|
||||
run: |
|
||||
PYTHON_EXE=${{ steps.tools-virtualenv.outputs.python-executable }}
|
||||
${PYTHON_EXE} -m ensurepip --upgrade
|
||||
(${PYTHON_EXE} -m pip install --help | grep break-system-packages > /dev/null 2>&1) && exitcode=0 || exitcode=1
|
||||
if [ $exitcode -eq 0 ]; then
|
||||
${PYTHON_EXE} -m pip install --break-system-packages --upgrade setuptools
|
||||
${PYTHON_EXE} -m pip install --break-system-packages -r requirements/static/ci/py${{ steps.get-python-version.outputs.version }}/tools.txt
|
||||
else
|
||||
${PYTHON_EXE} -m pip install --upgrade setuptools
|
||||
${PYTHON_EXE} -m pip install -r requirements/static/ci/py${{ steps.get-python-version.outputs.version }}/tools.txt
|
||||
fi
|
||||
|
||||
|
|
2
.github/workflows/build-packages.yml
vendored
2
.github/workflows/build-packages.yml
vendored
|
@ -152,7 +152,7 @@ jobs:
|
|||
name: RPM
|
||||
if: ${{ toJSON(fromJSON(inputs.matrix)['linux']) != '[]' }}
|
||||
runs-on:
|
||||
- ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || 'linux-arm64' }}
|
||||
- ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || inputs.linux_arm_runner }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
|
@ -1573,7 +1573,7 @@ def workflow_config(
|
|||
config["linux_arm_runner"] = os.environ["LINUX_ARM_RUNNER"]
|
||||
else:
|
||||
# Public repositories can use github's arm64 runners.
|
||||
config["linux_arm_runner"] = "ubuntu-24.04-arm"
|
||||
config["linux_arm_runner"] = "ubuntu-22.04-arm"
|
||||
|
||||
ctx.info(f"{'==== labels ====':^80s}")
|
||||
ctx.info(f"{pprint.pformat(labels)}")
|
||||
|
|
Loading…
Add table
Reference in a new issue