-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a bundle package and environment to build a basic "externals" stack #676
Open
tmadlener
wants to merge
6
commits into
main
Choose a base branch
from
base-environment
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6f2afa0
Add a base package that bundles a bunch of common deps
tmadlener 934ae29
Require +atomic for boost since something wants that
tmadlener c8f64dc
Add all boost variants that are required
tmadlener 9cbe54c
Make sure we have a suitable fmt version
tmadlener 9b67235
Rename base stack to external stack
tmadlener 334aa25
Make sure to explicitly import from spack
tmadlener File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
spack: | ||
packages: | ||
all: | ||
variants: | ||
- build_type=RelWithDebInfo | ||
- 'cxxstd=20' | ||
target: [] | ||
compiler: [] | ||
|
||
boost: | ||
require: +atomic+chrono+context+date_time+exception+fiber+filesystem+graph+iostreams+locale+log+math+multithreaded+program_options+python+random+regex+serialization+shared+signals+system+test+thread+timer+wave | ||
|
||
view: false | ||
include: | ||
- ../key4hep-common/packages.yaml | ||
|
||
specs: | ||
- key4hep-external-stack |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from datetime import datetime | ||
|
||
from spack.pkg.k4.key4hep_stack import Key4hepPackage, install_setup_script | ||
|
||
|
||
class Key4hepExternalStack(BundlePackage, Key4hepPackage): | ||
"""Bundle package that contains a basic external software stack upon which | ||
Key4hep can be built | ||
|
||
The packages in this base stack are mainly | ||
""" | ||
|
||
homepage = "https://cern.ch/key4hep" | ||
|
||
version(datetime.today().strftime("%Y-%m-%d")) | ||
|
||
# this bundle package installs a custom setup script, so | ||
# need to add the install phase (which normally does not | ||
# exist for a bundle package) | ||
phases = ["install"] | ||
|
||
# Some generally useful development tools | ||
depends_on("cmake") | ||
depends_on("ninja") | ||
depends_on("python") | ||
depends_on("gdb") | ||
depends_on("catch2@3:") | ||
depends_on("boost") | ||
depends_on("py-pytest") | ||
|
||
# general hep packages | ||
depends_on("root") | ||
depends_on("geant4") | ||
depends_on("pythia8") | ||
depends_on("hepmc3") | ||
depends_on("evtgen +photos+tauola+pythia8+hepmc3") | ||
depends_on("heppdt") | ||
depends_on("fastjet") | ||
|
||
# podio dependencies | ||
depends_on("py-pyyaml") | ||
depends_on("py-tabulate") | ||
depends_on("py-jinja2") | ||
depends_on("py-graphviz") | ||
|
||
# other general deps | ||
depends_on("py-numpy") | ||
depends_on("py-scipy") | ||
|
||
# gaudi dependencies | ||
depends_on("py-nose") | ||
depends_on("cppgsl") | ||
depends_on("fmt") | ||
depends_on("cppunit") | ||
depends_on("gperftools") | ||
depends_on("py-networkx") | ||
depends_on("py-six") | ||
depends_on("range-v3") | ||
depends_on("py-pytest-cov") | ||
depends_on("jemalloc") | ||
depends_on("aida") | ||
|
||
def install(self, spec, prefix): | ||
return install_setup_script(self, spec, prefix, "K4_BASE_STACK") |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmcarcell should this go into the common packages.yaml?