diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2016-01-19 17:27:18 -0800 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2016-01-19 17:27:18 -0800 |
commit | 965af75d23b356b44918f815b0e7ef14bdedcba3 (patch) | |
tree | bef1b0dea7314aef95982fe2f1811768d812aaac /bin | |
parent | d22cf1aed1d033610481cb451909c93916848ccc (diff) | |
parent | 9be37da077158c43eb0c2f6b190773772dfa9ef5 (diff) | |
download | spack-965af75d23b356b44918f815b0e7ef14bdedcba3.tar.gz spack-965af75d23b356b44918f815b0e7ef14bdedcba3.tar.bz2 spack-965af75d23b356b44918f815b0e7ef14bdedcba3.tar.xz spack-965af75d23b356b44918f815b0e7ef14bdedcba3.zip |
Merge branch 'develop' into features/boost-additive-libs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/spack | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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: |