diff options
author | Benjamin Walters <bwalter4@hawk.iit.edu> | 2015-03-19 04:37:21 -0500 |
---|---|---|
committer | Benjamin Walters <bwalter4@hawk.iit.edu> | 2015-03-19 04:37:21 -0500 |
commit | 1b75b34eb648a187ed300848422e5125c804b734 (patch) | |
tree | 46c1b5e396a88d5074351eeeac27e96c74af1d43 | |
parent | 3d2df174d16720e44f6b62f51927496ae2923e74 (diff) | |
download | spack-1b75b34eb648a187ed300848422e5125c804b734.tar.gz spack-1b75b34eb648a187ed300848422e5125c804b734.tar.bz2 spack-1b75b34eb648a187ed300848422e5125c804b734.tar.xz spack-1b75b34eb648a187ed300848422e5125c804b734.zip |
Removed subprocess.call calls and replaced with spack symlink calls
-rw-r--r-- | var/spack/packages/lapack/package.py | 3 | ||||
-rw-r--r-- | var/spack/packages/netlib_blas/package.py | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/var/spack/packages/lapack/package.py b/var/spack/packages/lapack/package.py index 25469679ed..9990b0bf33 100644 --- a/var/spack/packages/lapack/package.py +++ b/var/spack/packages/lapack/package.py @@ -1,5 +1,4 @@ from spack import * -from subprocess import call import sys import glob @@ -22,7 +21,7 @@ class Lapack(Package): def install(self, spec, prefix): # CMake could be used if the build becomes more complex - call(['cp', 'make.inc.example', 'make.inc']) + symlink('make.inc.example', 'make.inc') # Retrieves name of package that satisifies 'blas' virtual dependency blas_name = next(m for m in ('netlib_blas', 'atlas') if m in spec) diff --git a/var/spack/packages/netlib_blas/package.py b/var/spack/packages/netlib_blas/package.py index e6b7ec80a4..725bda1309 100644 --- a/var/spack/packages/netlib_blas/package.py +++ b/var/spack/packages/netlib_blas/package.py @@ -1,5 +1,4 @@ from spack import * -from subprocess import call class NetlibBlas(Package): """Netlib reference BLAS""" @@ -15,7 +14,7 @@ class NetlibBlas(Package): parallel = False def install(self, spec, prefix): - call(['cp', 'make.inc.example', 'make.inc']) + symlink('make.inc.example', 'make.inc') make('blaslib') # Tests that blas builds correctly @@ -26,4 +25,4 @@ class NetlibBlas(Package): install('librefblas.a', prefix.lib) # Blas virtual package should provide blas.a - call(['ln', '-s', prefix.lib + '/librefblas.a', prefix.lib + '/blas.a'])
\ No newline at end of file + symlink(prefix.lib + '/librefblas.a', prefix.lib + '/blas.a')
\ No newline at end of file |