Skip to content

Fixed wrong sanity check in boost when using python3#1283

Merged
boegel merged 3 commits intoeasybuilders:developfrom
damianam:boost_python3
Nov 7, 2017
Merged

Fixed wrong sanity check in boost when using python3#1283
boegel merged 3 commits intoeasybuilders:developfrom
damianam:boost_python3

Conversation

@damianam
Copy link
Copy Markdown
Member

No description provided.

Comment thread easybuild/easyblocks/b/boost.py Outdated
if int(pymajorver) >= 3:
custom_paths["files"].append('lib/libboost_python%s.%s' % (pymajorver, shlib_ext))
else:
custom_paths["files"].append('lib/libboost_python.%s' % shlib_ext)
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.

To avoid copy-pasting, I'd prefer this:

pymajorver = get_software_version('Python').split('.')[0]
if int(pymajorver) >= 3:
    suff = pymajorver
else:
    suff = ''
custom_paths["files"].append('lib/libboost_python%s.%s' % (suff, shlib_ext))

@boegel boegel added this to the 3.5.0 milestone Nov 6, 2017
@boegel boegel added the bug fix label Nov 6, 2017
@boegel
Copy link
Copy Markdown
Member

boegel commented Nov 7, 2017

Strictly speaking, this fix is only needed for recent version of Boost (it's not needed for Boost 1.63.0 and earlier, it seems), but since libboost_python3.so is also there for older versions when building on top of Python 3, I don't think there's a need to make this conditional on recent versions.

So, going in, thanks @damianam!

@boegel boegel merged commit 8a1b6fb into easybuilders:develop Nov 7, 2017
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