Spack Setup: Developer Build Tool#7830
Closed
citibeth wants to merge 8 commits intofeatures/contextfrom
Closed
Conversation
added 6 commits
April 19, 2018 19:11
Removed debugging printout
…k env <env> <subcommand>`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@pramodskumbhar @bvanessen
This PR adds
spack setupcapability and supercedes #5043. It is based on the Spack Environments PR (#4585). Ideally, the two can be merged at the same time.Setup is a developer tool that makes it easy to configure CMake-based packages to use Spack-built dependencies. When Spack installs a package as "setup", it does not download, build or install that package. Instead, it creates a Python script
<package>-config.pythat, when run, will call CMake with appropriate configuration options.Syntax is as follows:
This will install the DAG represented by
spec, while installingpkg1,pkg2andpkg3in setup mode. Most common is to install the top of the DAG only as setup:Because Spack does not actually install packages in "setup" mode, any packages that depend on a setup package must also bee "installed" in "setup" mode. This restriction is not currently checked.
Setup mode currently only works for packages subclassing from
CMakePackage. Similar work could be done for other build systems, as well as ad-hoc packages.NOTES:
Setup was added to previous versions of Spack; but was never merged and suffered bitrot. This is the third (!) time the
spack setupcapability has been added to Spack; and hopefully we can get it merged this time!This PR contains the minimal changes needed to get Spack setup working. The separate
spack setupcommand in previous incarnations has been removed for simplicity.Future commits to this PR will allow for the use of Spack setup in environments.