summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-03-16 14:51:03 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-03-16 14:51:03 -0700
commitb8b334e86c9fb0ab4c7f682bccf82815d114e0a8 (patch)
tree49d5b866aa78c81a8b037705f42a0788ade841f5 /bin
parent74ec74d73ceea04afdda5cdde1b935713672fe2e (diff)
downloadspack-b8b334e86c9fb0ab4c7f682bccf82815d114e0a8.tar.gz
spack-b8b334e86c9fb0ab4c7f682bccf82815d114e0a8.tar.bz2
spack-b8b334e86c9fb0ab4c7f682bccf82815d114e0a8.tar.xz
spack-b8b334e86c9fb0ab4c7f682bccf82815d114e0a8.zip
New, more consistent package directory structure.
- Packages now live in <package_name>/package.py - spack.packages refactored to use a PackageDB object instead of monolithic module. - Implementation of mock_packages_test.py is greatly simplified - Added test to exercise install/uninstall code because that wasn't covered by existing tests and kept breaking.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/spack b/bin/spack
index ac9cd5738f..60a2ef4c3a 100755
--- a/bin/spack
+++ b/bin/spack
@@ -74,9 +74,10 @@ args = parser.parse_args()
spack.verbose = args.verbose
spack.debug = args.debug
if args.mock:
- from spack.util.filesystem import new_path
- mock_path = new_path(spack.module_path, 'test', 'mock_packages')
- spack.packages_path = mock_path
+ from llnl.util.filesystem import join_path
+ from spack.packages import PackageDB
+ mock_path = join_path(spack.module_path, 'test', 'mock_packages')
+ spack.db = PackageDB(mock_path)
# If the user asked for it, don't check ssl certs.
if args.insecure: