Skip to content

Commit

Permalink
DEBUG: wheel build debug [wheel build]
Browse files Browse the repository at this point in the history
[wheel build]
  • Loading branch information
tylerjereddy committed May 21, 2024
1 parent aa32933 commit f96b8af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
get_commit_message:
name: Get commit message
runs-on: ubuntu-latest
if: github.repository == 'scipy/scipy'
if: github.repository == 'tylerjereddy/scipy'
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
Expand Down Expand Up @@ -77,13 +77,9 @@ jobs:
# should also be able to do multi-archs on a single entry, e.g.
# [windows-2019, win*, "AMD64 x86"]. However, those two require a different compiler setup
# so easier to separate out here.
- [ubuntu-22.04, manylinux, x86_64]
- [ubuntu-22.04, musllinux, x86_64]
- [macos-11, macosx, x86_64]
- [macos-14, macosx, arm64]
- [windows-2019, win, AMD64]

python: [["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]]
python: [["cp312", "3.12"]]
# python[0] is used to specify the python versions made by cibuildwheel

env:
Expand Down Expand Up @@ -128,17 +124,11 @@ jobs:
run: |
if [[ ${{ matrix.buildplat[2] }} == 'arm64' ]]; then
# macosx_arm64
# use homebrew gfortran
LIB_PATH=$LIB_PATH:/opt/arm64-builds/lib
sudo xcode-select -s /Applications/Xcode_15.2.app
# for some reason gfortran is not on the path
GFORTRAN_LOC=$(brew --prefix gfortran)/bin/gfortran
ln -s $GFORTRAN_LOC gfortran
export PATH=$PWD:$PATH
echo "PATH=$PATH" >> "$GITHUB_ENV"
# location of the gfortran's libraries
GFORTRAN_LIB=$(dirname `gfortran --print-file-name libgfortran.dylib`)
GFORTRAN_LIB="\$(dirname \$(gfortran --print-file-name libgfortran.dylib))"
CIBW="MACOSX_DEPLOYMENT_TARGET=12.0\
MACOS_DEPLOYMENT_TARGET=12.0\
Expand All @@ -152,8 +142,8 @@ jobs:
echo "REPAIR_PATH=/opt/arm64-builds/lib" >> "$GITHUB_ENV"
CIBW="DYLD_LIBRARY_PATH=$GFORTRAN_LIB:/opt/arm64-builds/lib delocate-listdeps {wheel} &&\
DYLD_LIBRARY_PATH=$GFORTRAN_LIB:/opt/arm64-builds/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
CIBW="DYLD_LIBRARY_PATH=$GFORTRAN_LIB:$LIB_PATH delocate-listdeps {wheel} &&\
DYLD_LIBRARY_PATH=$GFORTRAN_LIB:$LIB_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
echo "CIBW_REPAIR_WHEEL_COMMAND_MACOS=$CIBW" >> "$GITHUB_ENV"
else
Expand Down
2 changes: 2 additions & 0 deletions tools/wheels/cibw_before_build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ if [[ $PLATFORM == "macosx-arm64" ]]; then
hdiutil attach -mountpoint /Volumes/gfortran gfortran.dmg
sudo installer -pkg /Volumes/gfortran/gfortran.pkg -target /
type -p gfortran
which gfortran
gfortran --version
fi

0 comments on commit f96b8af

Please sign in to comment.