Skip to content

Commit

Permalink
cherry-pick: Add inputs.delocate-wheel to build_wheels_macos.yaml (#5108
Browse files Browse the repository at this point in the history
)

Cherry-pick #5107 into
release/2.3

Give clients a way to disable wheel delocation.

This step is only run on macOS, so there's no equivalent change
necessary in the linux or windows workflows.
  • Loading branch information
dbort authored Apr 19, 2024
1 parent 2b257b7 commit 96bbcd7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build_wheels_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ on:
required: false
type: string
default: recursive
delocate-wheel:
description: "Whether to run delocate-wheel after building."
required: false
type: boolean
default: true

permissions:
id-token: write
Expand Down Expand Up @@ -121,6 +126,7 @@ jobs:
run: |
cat "${{ inputs.env-var-script }}" >> "${BUILD_ENV_FILE}"
- name: Install delocate-wheel
if: ${{ inputs.delocate-wheel }}
run: |
set -euxo pipefail
${CONDA_RUN} python3 -m pip install delocate==0.10.7
Expand Down Expand Up @@ -161,6 +167,7 @@ jobs:
${CONDA_RUN} python3 setup.py bdist_wheel
- name: Delocate wheel
if: ${{ inputs.delocate-wheel }}
working-directory: ${{ inputs.repository }}
run: |
set -euxo pipefail
Expand Down

0 comments on commit 96bbcd7

Please sign in to comment.