diff --git a/setup.py b/setup.py
index 5f43cc42beb9deae8aaf4b42eb6b7813df70ff34..5eea0c3aa3225ce078d58a0f97314cb33c789945 100644
--- a/setup.py
+++ b/setup.py
@@ -48,12 +48,19 @@ setup(name="loo.py",
           "pyopencl":  [
               "pyopencl>=2015.2",
               ],
-          'fortran':  [
-              "hg+https://bitbucket.org/inducer/f2py",
+          "fortran":  [
+              # Note that this is *not* regular 'f2py2e', this is
+              # the Fortran parser from the (unfinished) third-edition
+              # f2py, as linked below.
+              "f2py>=0.3.1",
               "ply>=3.6",
               ],
           },
 
+      dependency_links=[
+          "hg+https://bitbucket.org/inducer/f2py#egg=f2py==0.3.1"
+          ],
+
       scripts=["bin/loopy"],
 
       author="Andreas Kloeckner",