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.
This commit is contained in:
Todd Gamblin
2014-03-16 14:51:03 -07:00
parent 74ec74d73c
commit b8b334e86c
64 changed files with 554 additions and 486 deletions

View File

@@ -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: