More of a workaround, since it seems like the wrappers and binding files are generated could you try the `meson` build following this page in the documentation?
https://numpy.org/devdocs/f2py/buildtools/meson.html `distutils` support is patchy at best, but if the meson build doesn't work the bindings might be incorrect, please open an issue in that case. --- Rohit ________________________________ From: Samuel H Dupree Jr <sdup...@speakeasy.net> Sent: Saturday, 29 July 2023 09:33 To: Discussion of Numerical Python Subject: [Numpy-discussion] How to get numpy.distutils.fcompiler to find my absoft compiler Hello everyone, I'm trying to wrap some Fortran77 subroutines from the Math77 library using f2py3. f2py3 responds with a message: >> >> File >> "/Users/user/opt/anaconda3/lib/python3.9/site-packages/numpy/distutils/fcompiler/__init__.py", >> line 426, in get_version >> raise CompilerNotFound() >> numpy.distutils.fcompiler.CompilerNotFound I'm running Python ver. 3.9.17 under the Anaconda distribution (anaconda Command line client (version 1.12.0)) on a Mac Pro (2019) under Mac OS X Ventura ver. 13.4.1. The Fortran compiler is Absoft Pro Fortran ver. 22.0. The set of subroutines to be wrapped were concatenated into a single file named divapy.f. The command used to wrap the routines was >> >> --fcompiler=absoft --f77exec=/Applications/Absoft22.0/bin/f77 -c -m diva >> divapy.f I've attached a file containing the complete set of messages output by f2py3 using the command above. Any suggestions as to how to fix this problem? Sam Dupree.
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com