File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,21 @@ jobs:
130
130
name : cibw-sdist
131
131
path : sdist
132
132
133
- - name : Ensure Ninja not present on the system
134
- run : if which ninja; then false; fi
133
+ - name : Remove ninja
134
+ shell : bash
135
+ run : |
136
+ # Remove ninja
137
+ set -euxo pipefail
138
+ # https://github.com/scikit-build/scikit-build-core/blob/3943920fa267dc83f9295279bea1c774c0916f13/src/scikit_build_core/program_search.py#L70
139
+ for TOOL in ninja-build ninja samu; do
140
+ while which ${TOOL}; do
141
+ if [ "$RUNNER_OS" == "Windows" ]; then
142
+ rm -f "$(which ${TOOL})"
143
+ else
144
+ sudo rm -f $(which -a ${TOOL})
145
+ fi
146
+ done
147
+ done
135
148
136
149
- name : Install SDist
137
150
run : pip install --no-binary=ninja $(ls sdist/*.tar.gz)[test]
You can’t perform that action at this time.
0 commit comments