Skip to content
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

extern: set external_modules with new modules attribute #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dguibert
Copy link
Contributor

This path allow to define extern packages that require a modulefile to be loaded.

Maybe an environment attribute could be usefull as well.

@dylex
Copy link
Member

dylex commented Aug 30, 2022

This is to load modules at build-time of dependencies, right? Sort of tepted to name it extern_modules or something instead. If something has external_modules, it's necessarily extern, right? Should we only use modules if extern is set, or should we treat setting modules as if extern is set (for the purpose of distinguishing extern from non)? Or should instead there be a way to set extern to a list of modules? Does any of this propagate into module generation? (We don't use external modules so I'm not sure what the best semantics are.)

You can already set environment variables in a build through build, but I guess you want a way to set environment variables when building dependencies.

@dguibert
Copy link
Contributor Author

Yes it's at build-time.
This propagates the loading of the dependancy modules thru load_external_modules in setup_package (lib/spack/spack/build_environment.py).

Could be extern_modules only if extern is set, I think.

I know about build but here it's more like setup_dependent_build_environment to set environment variables required to use a package within another build environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants