title: make doesn't run .py file
body: <p>I am trying to create a Python module from Fortran code using <code>f2py</code>.  I have set up a Makefile for my project.  I am using MinGW and Python 3.2.2 on Windows 7.  When I run</p>
  
  <pre><code>f2py.py -c --compiler=mingw32 -m itf itimes-f.f
  </code></pre>
  
  <p>everything compiles and runs fine.  However, when I create a target in my Makefile and run it, it does this:</p>
  
  <pre><code>&gt; make compilef
  f2py.py -c --compiler=mingw32 -m itf itimes-f.f
  process_begin: CreateProcess(NULL, env python.exe C:\Python32\Scripts\f2py.py -c
   --compiler=mingw32 -m itf itimes-f.f, ...) failed.
  make (e=2): The system cannot find the file specified.
  make: *** [compilef] Error 2
  </code></pre>
  
  <p>Why won't <code>make</code> run the command, and how can I fix it?</p>
  
  <p><strong>EDIT:</strong> Running the command shown in the output doesn't work:</p>
  
  <pre><code>&gt; env python.exe C:\Python32\Scripts\f2py.py -c --compiler=mingw32 -m itf itimes-f.f
  'env' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>However, the following does work:</p>
  
  <pre><code>&gt; python.exe C:\Python32\Scripts\f2py.py -c --compiler=mingw32 -m itf itimes-f.f
  </code></pre>
  
  <p><strong>EDIT 2:</strong> This raises another question - What is <code>env</code> and why does <code>make</code> add it?</p>
  
  <p><strong>EDIT 3:</strong> Based on Florian's comment, it seems that the <code>env</code> was added by <code>make</code> due to the presence of the shebang line in f2py.py.  I edited f2py.py, adding an additional <code>#</code> in front of the shebang.  I now have the following problem:</p>
  
  <pre><code>&gt;make compilef
  f2py.py -c --compiler=mingw32 -m itf itimes-f.f
  process_begin: CreateProcess(C:\Python32\Scripts\f2py.py, f2py.py -c --compiler=
  mingw32 -m itf itimes-f.f, ...) failed.
  make (e=193): Error 193
  make: *** [compilef] Error 193
  </code></pre>