summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-01-19 10:01:42 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2016-01-19 10:01:42 -0600
commit58f18d5b12a30b6f567a3278dc44201a1e6d0119 (patch)
tree5b3c91c50f26d9576acad2e8f3902f8198a44640 /bin
parent6985d2c914159f7978c304530f7fb1eb38b2b78d (diff)
parent01c5b53ba16a95ab77918d30dfa3a63f2ef2707f (diff)
downloadspack-58f18d5b12a30b6f567a3278dc44201a1e6d0119.tar.gz
spack-58f18d5b12a30b6f567a3278dc44201a1e6d0119.tar.bz2
spack-58f18d5b12a30b6f567a3278dc44201a1e6d0119.tar.xz
spack-58f18d5b12a30b6f567a3278dc44201a1e6d0119.zip
Merge branch 'develop' into features/hwloc
* develop: (85 commits) Make libxcb compile with gcc 4.9. disable parallel install for glib (found races) disable cairo-trace, which is incompatible with older libiberty.h. Fix LaunchMon on newer gcc versions. Simplify output redirection in spack.util.executable Allow completely empty config files. Update cmake package to use http in all URLs. Fix create, diy, edit, and repo commands to use multiple repos. Add namespace option to find command. Temporary fix: Clang is the default compiler on Mac OS X. Netcdf requires cmake >=2.8.12 Mbedtls depends on cmake Update libtool to 2.4.6 Update Julia to 0.4.3 Make binutils build on OS X Add verbs and psm variants py-matplotlib: depend on freetype py-numpy: make blas/lapack optional dependencies qhull: apply patch to work with libc++'s standard library New package GNU tar ...
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/spack b/bin/spack
index cd46cf6180..93263217ac 100755
--- a/bin/spack
+++ b/bin/spack
@@ -41,6 +41,14 @@ sys.path.insert(0, SPACK_LIB_PATH)
SPACK_EXTERNAL_LIBS = os.path.join(SPACK_LIB_PATH, "external")
sys.path.insert(0, SPACK_EXTERNAL_LIBS)
+import warnings
+# Avoid warnings when nose is installed with the python exe being used to run
+# spack. Note this must be done after Spack's external libs directory is added
+# to sys.path.
+with warnings.catch_warnings():
+ warnings.filterwarnings("ignore", ".*nose was already imported")
+ import nose
+
# Quick and dirty check to clean orphaned .pyc files left over from
# previous revisions. These files were present in earlier versions of
# Spack, were removed, but shadow system modules that Spack still
@@ -132,8 +140,8 @@ def main():
spack.spack_working_dir = working_dir
if args.mock:
- from spack.packages import PackageDB
- spack.db = PackageDB(spack.mock_packages_path)
+ from spack.repository import RepoPath
+ spack.repo.swap(RepoPath(spack.mock_packages_path))
# If the user asked for it, don't check ssl certs.
if args.insecure: