On 2012/12/15 02:40, Juan Francisco Cantero Hurtado wrote:
> After of a quick read of the doc and code of pip, I can't find any
> reference related to the setting of new enviroment variables. Only a few
> calls for to get and set the variables used by pip. Maybe I've missed
> something.

Actually the problem is not with pip which is correctly getting the paths
from distutils.sysconfig for the C compiler, it's numpy which has its own
code for the Fortran compiler.

We could use something like this...

--- numpy/distutils/fcompiler/gnu.py.orig       Sat Dec 15 11:10:39 2012
+++ numpy/distutils/fcompiler/gnu.py    Sat Dec 15 11:10:21 2012
@@ -159,6 +159,8 @@ class GnuFCompiler(FCompiler):
                                                           '../../../../lib'))
                         if os.path.exists(os.path.join(d2, "lib%s.a" % 
self.g2c)):
                             opt.append(d2)
+               elif sys.platform[:7] == 'openbsd':
+                    opt.append('/usr/local/lib')
                 opt.append(d)
         return opt
 


> 
> A possible fix is to hardcode the paths in __init__.py but I guess isn't
> a good fix. I don't know. I'm a python newbie :)
> 
> -- 
> Juan Francisco Cantero Hurtado http://juanfra.info
> 

Reply via email to