Prefer vim to vi for default editor (#4230)

* vim > vi
* Allow which to accept multiple args
* Update __init__ to use which with multiple args
* Fix doc tests
This commit is contained in:
Adam J. Stewart
2017-06-15 04:27:18 -05:00
committed by Todd Gamblin
parent ce11e78530
commit e627447417
7 changed files with 93 additions and 81 deletions

View File

@@ -184,7 +184,7 @@ def check_install(self, spec):
"-L%s" % spec["hdf5"].prefix.lib, "-lhdf5")
try:
check = Executable("./check")
output = check(return_output=True)
output = check(output=str)
except:
output = ""
success = output == expected

View File

@@ -263,7 +263,7 @@ def check_install(self):
spec['hdf5'].libs.ld_flags.split()))
try:
check = Executable('./check')
output = check(return_output=True)
output = check(output=str)
except:
output = ""
success = output == expected

View File

@@ -72,7 +72,7 @@ def setup_environment(self, spack_env, run_env):
# spack_env.set('JAVA_HOME', self.spec['jdk'].prefix)
hadoop = self.spec['hadoop'].command
hadoop_classpath = hadoop('classpath', return_output=True)
hadoop_classpath = hadoop('classpath', output=str)
# Remove whitespaces, as they can compromise syntax in
# module files