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

Fixed license checking and CPATH definition #837

Merged
merged 7 commits into from
Mar 9, 2016

Conversation

damianam
Copy link
Member

This PR does 2 things:

-Eliminates the CPATH definition (see #830)
-Improves the license checking to be compatible with license servers. It does it in the same was as IntelBase.py. In the future, some of the functionality in these 2 places should be moved to the framework (see https://lists.ugent.be/wws/arc/easybuild/2016-02/msg00028.html)

@hpcugentbot
Copy link
Contributor

Automatic reply from Jenkins: Can I test this?

@boegel
Copy link
Member

boegel commented Feb 24, 2016

Jenkins: ok to test

@boegel
Copy link
Member

boegel commented Feb 24, 2016

@damianam: needs a sync with develop (already)?

@hpcugentbot
Copy link
Contributor

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1707/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel boegel added this to the v2.7.0 milestone Feb 24, 2016
@hpcugentbot
Copy link
Contributor

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1708/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

self.install_subdir = os.path.join('linux86-64', self.version)

def configure_step(self):
"""
Dummy configure method, just a license check
Handle license file. It mimics intelbase.py behaviour. It should be merged into the framekwork
at some point
Copy link
Member

Choose a reason for hiding this comment

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

How much tweaking did you need to do here?

I'm not a big fan of including it like this, it's just a copy-paste, and then someone may start to fix issues here, but not in intelbase.py, etc. etc.

Now is the time to get this into framework...

Copy link
Member Author

Choose a reason for hiding this comment

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

I haven't tweak it much. Just removed the intel bits. You are absolutely right, it is basically a copy&paste. The reason for it is to make easier the transition from this to the new state with this functionality present in the framework. Meaning that all this should become a couple of lines in the future. I guess the options are:

  1. Stick to a buggy easyblock until the new piece of the framework gets done and fix it then.
  2. Accept a copy&paste to fix the easyblock ASAP and have a trivial transition once the new piece of the framework is done.

1 is more elegant but keeps things unsolved for an undefined amount of time. 2 is a quick and ugly hack, but that works well until we have what we need in the framework.

I'd suggest to go for 1 if the changes in the framework are done before the next release, or go for 2 otherwise.

Copy link
Member

Choose a reason for hiding this comment

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

@hpcugentbot
Copy link
Contributor

Easyblocks unit test suite FAILed.

See https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1709/console for more details.

Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do.

# $CPATH should not be defined in module for PGI, it causes problems
# cfr. https://github.com/hpcugent/easybuild-easyblocks/issues/830
if 'CPATH' in dirs:
self.log.info("Removing $CPATH entry: %s", dirs['CPATH']
Copy link
Member

Choose a reason for hiding this comment

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

missing ) at the end

Jenkins knoooooows if you don't retest ;)

@hpcugentbot
Copy link
Contributor

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1713/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@hpcugentbot
Copy link
Contributor

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1746/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@hpcugentbot
Copy link
Contributor

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1751/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@hpcugentbot
Copy link
Contributor

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1757/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel
Copy link
Member

boegel commented Mar 9, 2016

Rereviewed, tested and approved, so going in.

Thanks @damianam!

boegel added a commit that referenced this pull request Mar 9, 2016
Fixed license checking and CPATH definition
@boegel boegel merged commit 8bdbdfd into easybuilders:develop Mar 9, 2016
@bartoldeman
Copy link
Contributor

Thanks, this all looks great to me! The CPATH issue was an oversight, not deliberate.

@damianam damianam deleted the pgi_fixes branch July 12, 2017 14:07
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.

4 participants