title: python setuptools compile fortran code and make an entry points
body: <p>Here's my directory structure,</p>
  
  <pre><code>├── test
  │   ├── test.f90
  │   ├── __init__.py
  │   └── test.py
  </code></pre>
  
  <p>Now I want to make a package from this with an command line tool <code>test</code>.
  Now I have two options, 1. numpy distutils and 2. setuptools.</p>
  
  <p>Problem with <code>distutils</code> is that it doesn't support entry points and it is also not recomended now. But it does compile the fortran code perfectly.
  Now as for setuptools I'm trying to use this code,</p>
  
  <pre><code>mod = Extension(name = 'foo.adt', sources = ['test/test.f90'])
  setup(
    name = 'foo',
    packages = ['foo'],
    package_dir = {'foo':'test'},
    ext_modules = [mod],
    entry_points={
      'console_scripts': [
          'hello = foo.test:main',
      ],
    }
  )
  </code></pre>
  
  <p>If I try to use this, it's throwing this error</p>
  
  <pre><code>error: unknown file type '.f90' (from 'test/test.f90')
  </code></pre>
  
  <p>So, I guess setuptools doesn't support fortran files? So, how do I compile the fortran code, create the package and create a entry point for that?</p>