diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-06-22 10:03:13 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-06-22 12:50:34 -0700 |
commit | 3303365d12004777d6b5ba95ac7c334ba1848b4a (patch) | |
tree | 6be58140317611bc6948486e942e638d0687021d | |
parent | 3653cfe6f08acc28ef9b65d8a81596119168b316 (diff) | |
download | spack-3303365d12004777d6b5ba95ac7c334ba1848b4a.tar.gz spack-3303365d12004777d6b5ba95ac7c334ba1848b4a.tar.bz2 spack-3303365d12004777d6b5ba95ac7c334ba1848b4a.tar.xz spack-3303365d12004777d6b5ba95ac7c334ba1848b4a.zip |
Add working_dir, Version back into package build namespace.
-rw-r--r-- | lib/spack/spack/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/spack/spack/__init__.py b/lib/spack/spack/__init__.py index 475fec1e1b..88375d02cd 100644 --- a/lib/spack/spack/__init__.py +++ b/lib/spack/spack/__init__.py @@ -29,7 +29,11 @@ # Spack internal code calls 'import spack' and accesses other # variables (spack.db, paths, etc.) directly. # -__all__ = ['Package', 'when', 'provides', 'depends_on', 'patch'] +# TODO: maybe this should be separated out and should go in build_environment.py? +# TODO: it's not clear where all the stuff that needs to be included in packages +# should live. This file is overloaded for spack core vs. for packages. +__all__ = ['Package', 'when', 'provides', 'depends_on', + 'patch', 'Version', 'working_dir'] import os import tempfile @@ -150,6 +154,8 @@ mirrors = [] # # Extra imports that should be generally usable from package.py files. # +from llnl.util.filesystem import working_dir from spack.package import Package from spack.relations import depends_on, provides, patch from spack.multimethod import when +from spack.version import Version |