Skip to content

Fix getting pylibdir in easyblock for python_meep#694

Merged
boegel merged 2 commits intoeasybuilders:developfrom
jas02:fix_python_meep_pylibdir
Nov 8, 2015
Merged

Fix getting pylibdir in easyblock for python_meep#694
boegel merged 2 commits intoeasybuilders:developfrom
jas02:fix_python_meep_pylibdir

Conversation

@jas02
Copy link
Copy Markdown
Contributor

@jas02 jas02 commented Sep 18, 2015

python-meep package easyblock is broken. Currently, there is inherited method configure_step() that don't handle self.pylibdir variable. So during installation we have self.pylibdir 'UNKNOWN' and numpyinc like:

/apps/Python/2.7.9-intel-2015b/UNKNOWN/numpy/core/include

instead of correct one

/apps/Python/2.7.9-intel-2015b/lib/python2.7/site-packages/numpy/core/include

Also, there is problem, that this easyblock count on numpy package in Python instance, not as separate module. This dependency is not mentioned in easyconfig.

@hpcugentbot
Copy link
Copy Markdown

Automatic reply from Jenkins: Can I test this?

Comment thread easybuild/easyblocks/p/python_meep.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

actually, a better fix would be to simply add the missing super call:

super(EB_python_minus_meep, self).configure_step()

That will take care of this too, and more (debug logging w.r.t. Python version being used, for example)

@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 18, 2015

Jenkins: ok to test

@boegel boegel added this to the v2.4.0 milestone Sep 18, 2015
@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1200/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
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1201/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
Copy Markdown
Member

boegel commented Sep 18, 2015

@jas02: w.r.t. numpy: maybe we should include a check command like python -c "import numpy" in this easyblock, and complain if that fails, to make sure that numpy is available as required?

adding a comment in the python_meep easyconfigs wouldn't hurt either?

@boegel boegel changed the title Fix getting pylibdir Fix getting pylibdir in easyblock for python_meep Sep 18, 2015
@boegel
Copy link
Copy Markdown
Member

boegel commented Nov 8, 2015

Going in for EB v2.4.0, thanks @jas02!

boegel added a commit that referenced this pull request Nov 8, 2015
Fix getting pylibdir in easyblock for python_meep
@boegel boegel merged commit f25b673 into easybuilders:develop Nov 8, 2015
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.

3 participants