Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 8fb907a

Browse files
committed
Pin gfortran-10 ref and bump libgfortran version
1 parent 813c06f commit 8fb907a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_lib_dir(dylib):
3232
import subprocess
3333
from os.path import realpath, dirname
3434

35-
p = subprocess.Popen("gfortran -print-file-name={}".format(dylib),
35+
p = subprocess.Popen("gfortran-10 -print-file-name={}".format(dylib),
3636
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
3737
shell=True)
3838
retcode = p.wait()
@@ -45,7 +45,7 @@ def get_lib_dir(dylib):
4545

4646

4747
if sys.platform == 'darwin':
48-
GFORTRAN_LIB = get_lib_dir('libgfortran.3.dylib')
48+
GFORTRAN_LIB = get_lib_dir('libgfortran.5.dylib')
4949
QUADMATH_LIB = get_lib_dir('libquadmath.0.dylib')
5050
ARGS = ["-Wl,-rpath,{}:{}".format(GFORTRAN_LIB, QUADMATH_LIB)]
5151
f_compile_args += ARGS

0 commit comments

Comments
 (0)