title: creating a python package with fortran using c_iso_binding and cython
body: <p>Is it possible to compile a python package using a setup.py file that uses fortran code with the workflow described in <a href="https://www.fortran90.org/src/best-practices.html#interfacing-with-c" rel="nofollow noreferrer">https://www.fortran90.org/src/best-practices.html#interfacing-with-c</a>?</p>
  <p>In brief, the workflow described here is to:</p>
  <ol>
  <li>create a fortran wrapper function that defines c_iso_bindings for a fortran subroutine</li>
  <li>create a cython .pyx function that creates a function using the generated c code from step #1</li>
  </ol>
  <p>Is it possible to compile the codes from both of these steps in a single setup.py file? The numpy distutils package seems to be best for compiling fortran source, while cython is compiled with its own distutils package.</p>
  <p>The solution in <a href="https://stackoverflow.com/questions/22404060/fortran-cython-workflow">this question</a> added explicit fortran compiler calls to the setup.py file, and uses the cython distutils package. This seems both a little messy, and to introduce the possibility that different compilers are used to generate the code.</p>