Skip to content

Conversation

@bartoldeman
Copy link
Contributor

@bartoldeman bartoldeman commented Nov 28, 2018

Using the prepare step we will be able to iterate over multiple
build-dependencies such as multiple Python versions.

This also removes the dependencies field from the Toolchain class which
handles them completely functionally now. The EasyBlock class now has
self.dependencies to remember them for outputting in modulefiles.

Using the prepare step we will be able to iterate over multiple
build-dependencies such as multiple Python versions.

This also removes the dependencies field from the Toolchain class which
handles them completely functionally now. The EasyBlock class now has
self.dependencies to remember them for outputting in modulefiles.
also use tcdeps instead of deps where appropriate for _load_modules()
Now that prepare_step() takes care of dependencies they now no longer
fail.
@easybuilders easybuilders deleted a comment from boegelbot Nov 28, 2018
@boegel boegel added this to the 3.8.0 milestone Nov 28, 2018
This avoids needing to worry about prepare returning a value, and
easyblocks relying on it.
@bartoldeman
Copy link
Contributor Author

ping @boegel ?

@boegel
Copy link
Member

boegel commented Dec 5, 2018

@bartoldeman The problem with the tests is "fixed" in #2678, I'll retrigger the tests for this PR...

@easybuilders easybuilders deleted a comment from boegelbot Dec 5, 2018
# do all dependencies have a toolchain version?
if deps is None:
deps = []
tcdeps = self._check_dependencies(deps)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bartoldeman Why not make this self.dependencies = self._check_dependencies(deps)?

Then there's no need to change _load_modules, _load_dependencies_modules and _add_dependency_variables to pass down tcdeps, they can just keep using self.dependencies like they were before?

It's a bit silly to pass them around if we have self.dependencies anyway (which we can't remove since easyblocks may be using it)...

add back Toolchain.add_dependencies as deprecated method
@boegel
Copy link
Member

boegel commented Dec 7, 2018

Thanks @bartoldeman!

@boegel boegel merged commit 45d233e into easybuilders:develop Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants