From 3303365d12004777d6b5ba95ac7c334ba1848b4a Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Sun, 22 Jun 2014 10:03:13 -0700 Subject: Add working_dir, Version back into package build namespace. --- lib/spack/spack/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-60-g2f50