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

move prepare_step before extract_step #3004

Closed

Conversation

boegel
Copy link
Member

@boegel boegel commented Sep 14, 2019

cfr. #1376

I don't actually intend to get this merged, I just want to get this on record...

I started looking into this, and it quickly became clear that @wpoely86's view was right: moving up the prepare_step such that dependencies required for unpacking sources is quite intrusive to do.

The guess_start_dir() call had to be moved from prepare_step to the end of extract_step, since it obviously requires that the sources are unpacked. That's a fairly minor issue, more like a logical consequence (you could even argue that guess_start_dir() is out of place in prepare_step, I guess).

As anticipated in #1376, this impacts easyblocks where the prepare_step is customized and it is assumed that the sources are already unpacked when it is being called. At first sight, this affects at least two software-specific easyblocks in the central repository: DL_POLY_Classic and OpenCV.
Although it's fairly easy to fix them to take into account that prepare_step is run before extract_step, it highlights the impact that the change has (we should take into account that there are other (customized) easyblocks outside of the central repository that may be affected).

This change also breaks a test (test_guess_start_dir), which may be easy to fix (it looks like a problem with assumptions made by the test itself, rather than an actual problem being caught), but it's still a sign of trouble...

@boegel boegel added the change label Sep 14, 2019
@boegel boegel added this to the 4.0.0 milestone Sep 14, 2019
@boegel
Copy link
Member Author

boegel commented Sep 14, 2019

Closing this, since I don't actually intend to get this merged...

@boegel boegel closed this Sep 14, 2019
@boegel boegel deleted the prepare_step_before_extract_step branch September 14, 2019 16:53
@boegel boegel restored the prepare_step_before_extract_step branch September 14, 2019 16:53
@boegel boegel deleted the prepare_step_before_extract_step branch September 14, 2019 17:15
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.

1 participant