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

1st cleanup pass for Anaconda easyblock #1

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Conversation

boegel
Copy link

@boegel boegel commented Oct 13, 2016

for easybuilders#950

@jerowe I cleaned things up a bit, major changes are:

  • derive from generic Binary easyblock to avoid code duplication
  • use adjust_permissions function rather than chmod
  • add custom sanity check in easyblock (rather than copy-pasting it in easyconfigs)
  • minor code style fixes

This is just a 1st pass, I expect to do additional passes, mostly in relation with the CondaCreate and CondaEnv easyblock that leverage parts of the Anaconda easyblock.

Please take a look at the proposed changes, let me know if you have any concerns.

If you merge this, easybuilders#950 will be updated as well.

self.src[0]['finalpath'] = self.builddir

# copy source to build dir.
for source in self.src:
Copy link
Owner

Choose a reason for hiding this comment

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

Will this remove the extract_step for all the blocks? In CondaEnv I am sometimes pulling from a remote environment, which means there is no file source. Will this have an effect if there is no source?

Copy link
Author

Choose a reason for hiding this comment

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

This only makes the change in the Anaconda easyblock, I haven't looked at the Conda* yet.

I think there may be some cleanup possible there too, I'll look into that later.

Copy link
Owner

Choose a reason for hiding this comment

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

Fair enough. ;-)

This is the master branch , and I had most of my changes in the develop branch. I am sharing some functions between the three EBs, but I don't remember exactly which functions.

Copy link
Author

Choose a reason for hiding this comment

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

What do you mean by 'this is the master branch'?

I've targeted your develop branch using this PR, which is also the one you used for easybuilders#950

Copy link
Owner

Choose a reason for hiding this comment

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

You're right. I don't know why I thought it was the master branch. My kids are bouncing around, and I should have sat down and been more careful about collecting my thoughts. ;-)

Copy link
Author

Choose a reason for hiding this comment

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

Hah, I know the feeling! :)

Copy link
Owner

Choose a reason for hiding this comment

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

@boegel , have you had a chance to take a look at the conda blocks?

@jerowe
Copy link
Owner

jerowe commented Oct 13, 2016

Thanks, @boegel . I had one comment about removing the extract step, but besides that it looks great. ;-)

jerowe pushed a commit that referenced this pull request Oct 13, 2016
nup.exe was 'temporarily removed' in WRF 3.7
@jerowe jerowe merged commit 38411c9 into jerowe:develop Oct 13, 2016
@boegel
Copy link
Author

boegel commented Oct 13, 2016

@jerowe thanks for the merge, pleas take a look at jerowe/easybuild-easyconfigs#1 too

jerowe pushed a commit that referenced this pull request Jan 5, 2017
jerowe pushed a commit that referenced this pull request Oct 22, 2019
take into account that $CC may not be set when checking value of Python's $LDSHARED
jerowe pushed a commit that referenced this pull request Oct 22, 2019
wrap value passed to OpenBLAS build options in single quotes
jerowe pushed a commit that referenced this pull request Oct 22, 2019
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