added lapack and blas deps, fixed gfortran compiler dependency
This commit is contained in:
parent
92ea86dc36
commit
bd1cd83d71
11
var/spack/packages/py-numpy/gnu_fcompiler.patch
Normal file
11
var/spack/packages/py-numpy/gnu_fcompiler.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/numpy/distutils/fcompiler/gnu.py.orig 2015-08-17 11:31:52.000000000 -0700
|
||||||
|
+++ b/numpy/distutils/fcompiler/gnu.py 2015-08-17 11:32:48.000000000 -0700
|
||||||
|
@@ -252,7 +252,7 @@
|
||||||
|
# GNU Fortran 95 (GCC) 4.2.0 20060218 (experimental)
|
||||||
|
# GNU Fortran (GCC) 4.3.0 20070316 (experimental)
|
||||||
|
|
||||||
|
- possible_executables = ['gfortran', 'f95']
|
||||||
|
+ possible_executables = ['fc', 'f95']
|
||||||
|
executables = {
|
||||||
|
'version_cmd' : ["<F90>", "--version"],
|
||||||
|
'compiler_f77' : [None, "-Wall", "-g", "-ffixed-form",
|
@ -7,9 +7,17 @@ class PyNumpy(Package):
|
|||||||
|
|
||||||
version('1.9.1', '78842b73560ec378142665e712ae4ad9')
|
version('1.9.1', '78842b73560ec378142665e712ae4ad9')
|
||||||
version('1.9.2', 'a1ed53432dbcd256398898d35bc8e645')
|
version('1.9.2', 'a1ed53432dbcd256398898d35bc8e645')
|
||||||
|
|
||||||
|
patch('gnu_fcompiler.patch', when='%gcc')
|
||||||
|
|
||||||
extends('python')
|
extends('python')
|
||||||
depends_on('py-nose')
|
depends_on('py-nose')
|
||||||
|
depends_on('netlib-blas+fpic')
|
||||||
|
depends_on('netlib-lapack+shared')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
|
with open('site.cfg', 'w') as f:
|
||||||
|
f.write('[DEFAULT]\n')
|
||||||
|
f.write('libraries=lapack,blas\n')
|
||||||
|
f.write('library_dirs=%s/lib:%s/lib\n' % (spec['blas'].prefix, spec['lapack'].prefix))
|
||||||
python('setup.py', 'install', '--prefix=%s' % prefix)
|
python('setup.py', 'install', '--prefix=%s' % prefix)
|
||||||
|
@ -11,6 +11,8 @@ class PyScipy(Package):
|
|||||||
extends('python')
|
extends('python')
|
||||||
depends_on('py-nose')
|
depends_on('py-nose')
|
||||||
depends_on('py-numpy')
|
depends_on('py-numpy')
|
||||||
|
depends_on('blas')
|
||||||
|
depends_on('lapack')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
python('setup.py', 'install', '--prefix=%s' % prefix)
|
python('setup.py', 'install', '--prefix=%s' % prefix)
|
||||||
|
Loading…
Reference in New Issue
Block a user