File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 8484 name : dist
8585 path : dist
8686
87+ - uses : actions/setup-python@v5
88+ # As of 2024-02-03, the macOS M1 runners do not have preinstalled python or pipx.
89+ # Installing pipx follows the approach of https://github.com/pypa/cibuildwheel/pull/1743
90+ id : python
91+ with :
92+ python-version : " 3.8 - 3.12"
93+ update-environment : false
94+
8795 - name : Build platform wheels
8896 # We build the wheel from the sdist.
8997 # But we must run cibuildwheel with the unpacked source directory, not a tarball,
@@ -92,12 +100,13 @@ jobs:
92100 # In the CIBW_BEFORE_ALL phase, we install libraries using the Sage distribution.
93101 # https://cibuildwheel.readthedocs.io/en/stable/options/#before-all
94102 run : |
103+ "${{ steps.python.outputs.python-path }}" -m pip install pipx
95104 export PATH=build/bin:$PATH
96105 export CIBW_BEFORE_ALL="( $(sage-print-system-package-command debian --yes --no-install-recommends install $(sage-get-system-packages debian $SPKGS)) || $(sage-print-system-package-command fedora --yes --no-install-recommends install $(sage-get-system-packages fedora $SPKGS | sed s/pkg-config/pkgconfig/)) || ( $(sage-print-system-package-command homebrew --yes --no-install-recommends install $(sage-get-system-packages homebrew $SPKGS)) || echo error ignored) ) && ./bootstrap && ./configure --enable-build-as-root && make -j4 V=0 $TARGETS_PRE"
97106 mkdir -p unpacked
98107 for pkg in cypari2; do
99108 (cd unpacked && tar xfz - ) < dist/$pkg*.tar.gz
100- pipx run cibuildwheel==2.17.0 unpacked/$pkg*
109+ "${{ steps.python.outputs.python-path }}" -m pipx run cibuildwheel==2.17.0 unpacked/$pkg*
101110 done
102111
103112 - uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments