-
Notifications
You must be signed in to change notification settings - Fork 47
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
Pull jcsda-emc libs and repos out of spack fork #961
Pull jcsda-emc libs and repos out of spack fork #961
Conversation
b6ae567
to
9da6ee2
Compare
1e6c6d4
to
ab81f0f
Compare
71c02e4
to
400b206
Compare
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.
This is neat. Question: If you run setup.sh as is, will it update your ~/.spack config or where does spack "store" this configuration?
For both the extensions and the repos, it updates the config.yaml and repos.yaml, respectively, in etc/spack/defaults/. This is set by the "--scope" option. |
I should have noticed that ... thanks! Let me give this a try on macOS |
…AA/spack-stack into separate_spack_jan24
|
Ok, thanks. I was thinking that users who deploy spack-stack on their systems may find the current directory layout confusing; it's easier to understand if the stuff that is part of the spack extension in spack-stack lives in a directory that's labeled as such? |
I can suggest changes for your PR if you like so that you don't have to code it up (should be trivial I suppose). |
Just made the change. I agree this directory structure makes sense. |
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.
Thanks very much! And it works just fine on macOS.
One tiny little caveat that we developers need to remember with this change is that git diff
will show that spack
has been modified even though we didn't make any actual code changes - just need to be careful to not commit those changes back accidentally.
Thanks for doing this!
I added a bunch of reviewers here, more for their awareness than for requiring their reviews (but please review if you feel the desire to do so!). |
I merged the spack PR, new hash is JCSDA/spack@e7ef791 |
Summary
This PR takes lib/jcsda-emc/, var/spack/repos/jcsda-emc/, and var/spack/repos/jcsda-emc-bundles/ out of our spack fork and places them under spack-stack in subdirectory spack-ext. setup.sh has been modified so that when run for the first time in a new spack-stack instance, the extensions and repos will be added to the spack default configuration (etc/spack/defaults/{config.yaml,repos.yaml}). This will make it easier to swap in copies of main spack for testing purposes, as well as make it easier to compare and minimize differences with main spack.
Testing
Tested on personal machine. setup.sh should definitely be tested on other platforms, especially macOS.
Applications affected
n/a
Systems affected
all
Dependencies
JCSDA/spack#394
Issue(s) addressed
Addresses #436
Checklist