diff options
author | David Cournapeau <cournape@gmail.com> | 2008-12-16 18:04:24 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-12-16 18:04:24 +0000 |
commit | 4f1e6358b6d544b81c78805113b4f87d59f3482c (patch) | |
tree | 633aa10c791bf4a2a9debea78cd3f62931a44c59 /numpy/distutils/fcompiler/gnu.py | |
parent | 9fe7e3d13631bbcf986403e94bc493535b382988 (diff) | |
download | numpy-4f1e6358b6d544b81c78805113b4f87d59f3482c.tar.gz |
BUG: Do not harcode fortran runtime when copying it on windows. Should fix #969.
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index bd9284ba7..593b48ac0 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -130,10 +130,10 @@ class GnuFCompiler(FCompiler): # if windows and not cygwin, libg2c lies in a different folder if sys.platform == 'win32' and not d.startswith('/usr/lib'): d = os.path.normpath(d) - if not os.path.exists(os.path.join(d, 'libg2c.a')): + if not os.path.exists(os.path.join(d, "lib%s.a" % self.g2c)): d2 = os.path.abspath(os.path.join(d, '../../../../lib')) - if os.path.exists(os.path.join(d2, 'libg2c.a')): + if os.path.exists(os.path.join(d2, "lib%s.a" % self.g2c)): opt.append(d2) opt.append(d) return opt |