Files
macports-ports/python/py-spacepy/files/patch-FC-setup.py.diff
Renee Otten 8448949fff py-spacepy: update to 0.7.0
- drop py39, add py314 subport
- swith to PyPI
2026-03-27 16:18:30 -04:00

21 lines
884 B
Diff

--- setup.py.orig 2026-03-27 15:49:51
+++ setup.py 2026-03-27 15:52:03
@@ -203,7 +203,7 @@
and not platform.uname()[4].startswith(('arm', 'aarch64')):
# Raspberry Pi doesn't have or need this switch
compflags = ['-m{0}'.format(bit)] + compflags
- comp_candidates = ['gfortran']
+ comp_candidates = ['@@MP_FC@@']
if sys.platform == 'win32':
comp_candidates.insert(0, 'gfortran.exe')
if 'FC' in os.environ:
@@ -409,7 +409,7 @@
if not os.path.exists(outlibdir):
os.makedirs(outlibdir, exist_ok=True)
for f in libneeded:
- p = subprocess.Popen(['gfortran', f'--print-file-name={f}.dylib'],
+ p = subprocess.Popen(['@@MP_FC@@', f'--print-file-name={f}.dylib'],
stdout=subprocess.PIPE)
out, err = p.communicate()
if p.returncode: