Skip to content

Commit 0894b51

Browse files
authored
Merge pull request #225 from mattip/macos-15-intel2
use gfortran-11 on macos-x86_64 build
2 parents a15d431 + 23bb8cd commit 0894b51

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

.github/workflows/posix.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- { os: ubuntu-latest, PLAT: x86_64, INTERFACE64: '0', MB_ML_VER: '2014', MB_ML_LIBC: manylinux}
2929
- { os: ubuntu-latest, PLAT: x86_64, INTERFACE64: '1', MB_ML_VER: '2014', MB_ML_LIBC: manylinux}
3030

31-
- { os: macos-latest, PLAT: x86_64, INTERFACE64: '0', MB_ML_LIBC: macosx}
32-
- { os: macos-latest, PLAT: x86_64, INTERFACE64: '1', MB_ML_LIBC: macosx}
31+
- { os: macos-14, PLAT: x86_64, INTERFACE64: '0', MB_ML_LIBC: macosx}
32+
- { os: macos-14, PLAT: x86_64, INTERFACE64: '1', MB_ML_LIBC: macosx}
3333

3434
- { os: macos-latest, PLAT: arm64, INTERFACE64: '0', MB_ML_LIBC: macosx}
3535
- { os: macos-latest, PLAT: arm64, INTERFACE64: '1', MB_ML_LIBC: macosx}
@@ -59,10 +59,15 @@ jobs:
5959
fetch-depth: 0
6060

6161
- uses: maxim-lobanov/setup-xcode@v1.6.0
62-
if: ${{ contains(matrix.os, 'macos') }}
62+
if: ${{ matrix.os == 'macos-latest' }}
6363
with:
6464
xcode-version: '16.0'
6565

66+
- uses: maxim-lobanov/setup-xcode@v1.6.0
67+
if: ${{ matrix.os == 'macos-14' }}
68+
with:
69+
xcode-version: '15.4'
70+
6671
- name: Print some Environment variable
6772
run: |
6873
echo "PLAT: ${PLAT}"

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "OpenBLAS"]
22
path = OpenBLAS
33
url = https://github.com/xianyi/OpenBLAS.git
4+
[submodule "gfortran-install"]
5+
path = gfortran-install
6+
url = https://github.com/MacPython/gfortran-install.git

gfortran-install

Submodule gfortran-install added at 3dd38d9

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
[project]
1010
name = "scipy-openblas64"
1111
# v0.3.30
12-
version = "0.3.30.0.5"
12+
version = "0.3.30.0.6"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

tools/build_steps.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,18 @@ function do_build_lib {
150150
Darwin-x86_64)
151151
local bitness=64
152152
local target="CORE2"
153-
# Pick up the gfortran runtime libraries
153+
# Use gfortran-11
154+
unalias gfortran
155+
# Since install_fortran uses `uname -a` to determine arch,
156+
# force the architecture
157+
arch -${PLAT} bash -s << EOF
158+
source ${ROOT_DIR}/gfortran-install/gfortran_utils.sh
159+
install_gfortran
160+
EOF
154161
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
155162
CFLAGS="$CFLAGS -arch x86_64"
156163
export SDKROOT=${SDKROOT:-$(xcrun --show-sdk-path)}
164+
local dynamic_list="CORE2 NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
157165
;;
158166
*-i686)
159167
local bitness=32

0 commit comments

Comments
 (0)