-
Notifications
You must be signed in to change notification settings - Fork 20
Add check for the existence of EESSI_SITE_SOFTWARE_PATH in EESSI-extend
#235
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -143,9 +143,17 @@ elseif eessi_site_install then | |||||
| LmodError("You cannot use EESSI_SITE_INSTALL in combination with any other EESSI_*_INSTALL environment variables") | ||||||
| end | ||||||
| easybuild_installpath = os.getenv("EESSI_SITE_SOFTWARE_PATH") | ||||||
| -- enforce accelerator subdirectory usage for site installs (only if an accelerator install is requested) | ||||||
| -- Check that the plain EESSI_SITE_SOFTWARE_PATH exists | ||||||
| if not isDir(easybuild_installpath) then | ||||||
| LmodError("The location of EESSI_SITE_SOFTWARE_PATH (" .. easybuild_installpath .. ") does not exist or is not a folder") | ||||||
| end | ||||||
| -- enforce accelerator subdirectory usage for site installs (only if an accelerator install is requested) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| if (eessi_accelerator_target ~= nil) and (cuda_compute_capability ~= nil) and (os.getenv("EESSI_ACCELERATOR_INSTALL") ~= nil) then | ||||||
| easybuild_installpath = pathJoin(easybuild_installpath, eessi_accelerator_target) | ||||||
| -- Check that the EESSI_SITE_SOFTWARE_PATH with eessi_accelerator_target prefix exists | ||||||
| if not isDir(easybuild_installpath) then | ||||||
| LmodError("The easybuild install directory (" .. easybuild_installpath ..") does not exist or is not a folder") | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, it doesn't have to exist. The site paths are special because they are exposed by default. I'll need to check the other PR to make sure there is no check for their existence before adding them to |
||||||
| end | ||||||
| end | ||||||
| else | ||||||
| -- Deal with user and project installs | ||||||
|
|
||||||
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.
EasyBuild will happily create the folder later on first run (if it is allowed), could just be a warning