-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Automatically detect location of Spack #2123
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
Conversation
|
Can I test this patch? |
|
I guess the obvious question is: why don't you do cmds = ['. $(spack location --spack-root)/share/spack/setup-env.sh']? The answer is because I'm not sure that'd work on my system: the problem I was seeing in #2097 is that |
4d60abe to
7eecfc7
Compare
Codecov Report
@@ Coverage Diff @@
## master #2123 +/- ##
=======================================
Coverage 85.97% 85.97%
=======================================
Files 53 53
Lines 9362 9362
=======================================
Hits 8049 8049
Misses 1313 1313
Continue to review full report at Codecov.
|
|
Ok, I finally figured out what was my trouble in #2097: the job scripts had #!/bin/bashas shebang, so my init file wasn't loaded. The solution was to use the This pull request replaces |
This removes the need to set the `SPACK_ROOT` environment variable.
7eecfc7 to
ee0a266
Compare
|
Ok to test |
vkarak
left a comment
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.
Lgtm. I'm not sure about whether we need the quotes or not.
This removes the need to set the
SPACK_ROOTenvironment variable. Fixes #2097.I'm not sure how to test this though as it requires a working Spack to generatethe script.