summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-01-21 02:40:38 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2016-01-21 10:46:33 -0800
commit10848c2e9a7cd3771c469dfd5ddb235f76b229ba (patch)
treee0250e30aabba657d6df86ae98edebf78a9a686a /var
parent25f7dbd3e9c5d6f929c1c1a1d01cc0e314a496ff (diff)
downloadspack-10848c2e9a7cd3771c469dfd5ddb235f76b229ba.tar.gz
spack-10848c2e9a7cd3771c469dfd5ddb235f76b229ba.tar.bz2
spack-10848c2e9a7cd3771c469dfd5ddb235f76b229ba.tar.xz
spack-10848c2e9a7cd3771c469dfd5ddb235f76b229ba.zip
Refactor args for Executable.__call__
- simplify output, error, and input redirection - `return_output=True` is now `output=str` - `return_output=True` will still work for the time being but is deprecated. - previously you could say `return_output=True` and `output=<stream>`, which wouldn't actually write to the stream. Now you actually can't specify erroneous cases since there is only one parameter with mutually exclusive options..
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index 61b16f3fd8..3e5895cfb8 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -50,7 +50,7 @@ class Gcc(Package):
version('4.5.4', '27e459c2566b8209ab064570e1b378f7')
variant('gold', default=True, description="Build the gold linker plugin for ld-based LTO")
-
+
depends_on("mpfr")
depends_on("gmp")
depends_on("mpc") # when @4.5:
@@ -102,7 +102,7 @@ class Gcc(Package):
configure(*options)
make()
make("install")
-
+
self.write_rpath_specs()
@@ -121,7 +121,7 @@ class Gcc(Package):
return
gcc = Executable(join_path(self.prefix.bin, 'gcc'))
- lines = gcc('-dumpspecs', return_output=True).strip().split("\n")
+ lines = gcc('-dumpspecs', output=str).strip().split("\n")
specs_file = join_path(self.spec_dir, 'specs')
with closing(open(specs_file, 'w')) as out:
for line in lines: