summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGeorge Todd Gamblin <gamblin2@llnl.gov>2014-06-22 13:00:17 -0700
committerGeorge Todd Gamblin <gamblin2@llnl.gov>2014-06-22 13:00:17 -0700
commitf7fe65102f082c743949708ed14767d22831b728 (patch)
tree8f2d9d9a93f5f57fdd7fc121e9d320ab9b187158 /bin
parentc66a6a16f9224ee340ba3f602115dc638f5807c4 (diff)
parent33a11f32fdaea48192ecb13a85af11f85aa6b8bf (diff)
downloadspack-f7fe65102f082c743949708ed14767d22831b728.tar.gz
spack-f7fe65102f082c743949708ed14767d22831b728.tar.bz2
spack-f7fe65102f082c743949708ed14767d22831b728.tar.xz
spack-f7fe65102f082c743949708ed14767d22831b728.zip
Merge pull request #14 in SCALE/spack from features/compilers to develop
# By Todd Gamblin # Via Todd Gamblin * commit '33a11f32fdaea48192ecb13a85af11f85aa6b8bf': (21 commits) Multi-compiler support feature-complete. Fix SPACK-3, SPACK-4, SPACK-12. Executables can optionally ignore error output. Enable allow_no_value for config parser. Make tests use mock compiler configuration. Set default editor to vi if EDITOR is not set. Add working_dir, Version back into package build namespace. Compiler support now uses configuration files. Make debug and verbose output work properly. Minor cleanup and bug fixes. Add support for configuration files. Fix SPACK-24. Proper exiting for forked process in do_install() Move globals to spack's __init__.py Move globals to spack's __init__.py Adding per-compiler python files Initial ability to swap compilers. Better satisfies: e.g., v4.7.3 now satisfies v4.7 Add CompilerSpec class and loading capability. Implemented compiler concretization policy. Sorted out spack.compilers vs var/spack/compilers Make Compiler constructor behave like Spec constructor. ...
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/spack b/bin/spack
index fb9f045f35..df517c1f1d 100755
--- a/bin/spack
+++ b/bin/spack
@@ -41,7 +41,7 @@ sys.path.insert(0, SPACK_LIB_PATH)
# If there is no working directory, use the spack prefix.
try:
- os.getcwd()
+ working_dir = os.getcwd()
except OSError:
os.chdir(SPACK_PREFIX)
@@ -77,8 +77,11 @@ for cmd in spack.cmd.commands:
args = parser.parse_args()
# Set up environment based on args.
-spack.verbose = args.verbose
+tty.set_verbose(args.verbose)
+tty.set_debug(args.debug)
spack.debug = args.debug
+
+spack.spack_working_dir = working_dir
if args.mock:
from spack.packages import PackageDB
spack.db = PackageDB(spack.mock_packages_path)