diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ dirs.extend(numpy_include_dirs)
 dirs.append('.')
 print dirs
 
-ext_cplfit = Extension("plfit",
+ext_cplfit = Extension("plfit.cplfit",
                        ["plfit/cplfit.pyx"],
                        include_dirs=dirs,
                        extra_compile_args=['-O3'])
@@ -66,7 +66,7 @@ if __name__=="__main__":
     # therefore, run this command separately
     # gfortran = OK.  g77, g95 NOT ok
     # also, this is kind of a ridiculous hack...
-    if any([x in sys.argv for x in ['build','install']]):
+    if any([x in sys.argv for x in ['build','install','develop']]):
         fortran_compile_command = "cd plfit && f2py -c fplfit.f -m fplfit --fcompiler=gfortran && cd .."
         os.system(fortran_compile_command)
     # do this first so it gets copied (in principle...)
fix setup.py: compilation actually works now!