-
Notifications
You must be signed in to change notification settings - Fork 209
add support for specifying dependencies required to obtain source files via source_deps
easyconfig parameter
#4766
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: develop
Are you sure you want to change the base?
Conversation
When testing on
|
@PetrKralCZ How are you specifying |
source_deps = [
('git-lfs', '3.5.1', '', SYSTEM),
] |
We should make sure that entries in |
Fails with
In that case there's no real |
if source_deps: | ||
pre_fetch_env = copy.deepcopy(os.environ) | ||
source_deps_mod_names = [d['short_mod_name'] for d in source_deps] | ||
self.modules_tool.load(source_deps_mod_names) |
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.
@PetrKralCZ Before trying to load modules, we need to take into account that self.modules_tool
may be a NoModulesTool
instance (that will be the case when eb --fetch
is used).
If so, then we need to re-initialize self.modules_tool
to a proper ModulesTool
instance (via the modules_tool
function available in tools/config.py
).
This will need changes in options.py
too though, because there we're now overwriting self.options.modules_tool
with None
, we also need to keep track of the original value so we can then pass it to the modules_tool
function (which will also need to be adjusted)...
source_deps
source_deps
easyconfig parameter
(created using
eb --new-pr
)