Skip to content

Conversation

@smoors
Copy link
Contributor

@smoors smoors commented Aug 18, 2020

currently start_dir is not prefixed for RPackage extensions, requiring the full path to be specified.
this is fixed by prepending start_dir with ext_dir.

@smoors smoors added the bug fix label Aug 18, 2020
@boegel boegel added this to the next release (4.3.0) milestone Sep 1, 2020
@boegel boegel changed the title fix start_dir for RPackage extensions make sure self.start_dir is set to a complete path before constructing installation command in RPackage easyblock Sep 4, 2020
@boegel boegel changed the title make sure self.start_dir is set to a complete path before constructing installation command in RPackage easyblock make sure self.start_dir is set to a full path before constructing installation command in RPackage easyblock Sep 4, 2020
if self.start_dir:
loc = os.path.join(self.ext_dir or os.path.sep, self.start_dir)
else:
loc = self.ext_dir or self.ext_src
Copy link
Member

Choose a reason for hiding this comment

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

As a side effect of the changes in easybuilders/easybuild-framework#3426, this doesn't work as intended anymore...

By the time you reach this code, self.start_dir has already been changed to the value of self.ext_dir, because the existence check done in _set_start_dir on the relative path in self.start_dir has failed...

Copy link
Member

Choose a reason for hiding this comment

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

This was actually a bug introduced with easybuilders/easybuild-framework#3426, should be fixed with easybuilders/easybuild-framework#3435...

@boegel
Copy link
Member

boegel commented Sep 4, 2020

Tested easybuilders/easybuild-easyconfigs#11136 on top of this + the fix in easybuilders/easybuild-framework#3435, works like a charm!

Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel merged commit 82ab106 into easybuilders:develop Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants