Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Make FDTD_Solutions easyblock do the install with copytree instead of rpm rebuild #1307
Make FDTD_Solutions easyblock do the install with copytree instead of rpm rebuild #1307
Changes from 11 commits
8194ae8
1eb434a
66d5d2e
f22225d
4c6ac06
b29e67e
ef4a4df
9db1b06
351a3af
5a2ff78
e8d41fb
bdadd97
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
@akesandgren Installation fails now because the install directory is pre-created, and
copy_dir
doesn't like that.You'll need to either call
remove_dir(self.installdir)s
first, or override themake_installdir
method to make it a no-op (just log a message like"Not pre-creating installation directory %s" % self.installdir
instead)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.
Something like that then?
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.
I overlooked that
make_installdir
is also responsible for removing an existing installation directory in case of a forced reinstall, so you should (also) setself.cfg['dontcreateinstalldir'] = True
before calling the parent: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.
@akesandgren There no
api
installed for the existingFDTD_Solutions
easyconfigs (8.6.2
and8.11.337
).And for
8.6.2
, there's nolib/fdtd-engine-mpichp4_libFNP.so
either (not even close).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.
Gah.... I only have 8.16.982 to look at...
Any suggestions?
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.
How about just checking for
bin/fdtd-solutions
and a non-emptylib
dir?That's still a little bit stricter than what was there (which was basically just checking for
bin
&lib
)...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.
checking for a non-empty lib? what do you mean? I can check for an existing lib dir like it was done before, but how can i check for a non-empty one without checking for a specific file?
Or did you just mean an existing lib dir?
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.
Correct me if I'm wrong, but
'dirs': ['lib']
already fails if thelib
directory is empty.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.
It does? Didn't really know that, but if that's the case it's good enough for me :-)
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.
In
easyblock.py
: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.
Exactly, the
dirs
entries need to exist & be non-empty. Checking for an empty dir is kind of useless. ;)