question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make numpy.distutils recognize Fortran 2003 and Fortran 2008 files

See original GitHub issue

NumPy build utils does not know what to do with .f03 and .f08 files. This makes it difficult to compile a library written in Fortran 2003 or 2008.

Fortran 2003 is e.g. useful if we want to make a C callable library without depending on an ABI wrapper. A typical usecase is calling Fortran from Cython, which is more flexible and efficient than using f2py.

f2py does not parse Fortran 2003. But that is not a problem if we just want to use configuration.add_library, and not configuration.add_extension (which will invoke f2py).

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:23 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
rgommerscommented, Aug 25, 2021

I’d also say it’s very low-prio either way, because there’s a good chance we’re moving away from numpy.distutils completely.

0reactions
HaoZekecommented, Apr 1, 2022

Closing due to np.distutils deprecation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fortran extensions and setup.py - Google Groups
Hi, I am creating Cython extension to a FORTRAN library. I do follow advice from www.fortran90.org, that is write an interface using iso_c_binding....
Read more >
Numpy distutils not recognizing Fortran file types
The issue lies in trying to use setuptools.setup with numpy.disutils.core.Extension . The numpy version of Extension contains additional ...
Read more >
Packaging (numpy.distutils) — NumPy v1.23 Manual
NumPy provides enhanced distutils functionality to make it easier to build and install sub-packages, auto-generate code, and extension modules that use ...
Read more >
F2py — Python-Fortran notebooks - Pierre Navaro
F2py is a part of Numpy and there are three ways to wrap Fortran with Python : Write some fortran subroutines and just...
Read more >
F2PY: A tool for connecting Fortran and Python programs
Fortran 77, Fortran 90, Fortran 95, and Fortran 2003 ... to create a tool-dependent specification file containing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found