Skip to content

Make VMD easyblock Python 3 compatible#2083

Merged
boegel merged 1 commit intoeasybuilders:developfrom
bedroge:vmd_py3
Jul 4, 2020
Merged

Make VMD easyblock Python 3 compatible#2083
boegel merged 1 commit intoeasybuilders:developfrom
bedroge:vmd_py3

Conversation

@bedroge
Copy link
Copy Markdown
Contributor

@bedroge bedroge commented Jun 25, 2020

Besides the fix for getting the Numpy include path (which didn't work in Python 3), I'm also adding two additional environment variables. The first sets the path to the Python include dir (Python 3 versions have something like include/python3.7m/python.h), for which I use the sysconfig package in Python. The second holds the linker flags (-lpython3.7m) for linking the Python libraries. For the latter I call python-config, e.g.:

$ python3-config --libs
-lpython3.7m -lcrypt -ldl -lm -lpthread -lutil -lm 

Since this only adds two environment variables (which my patch for new VMD versions will pick up), older VMD version should still work fine (they seem to have some hardcoded stuff in the configure script for, for instance, the name of the Python library).

@boegel boegel added bug fix python3 Python 3 compatibility labels Jul 3, 2020
@boegel boegel added this to the 4.2.2 milestone Jul 3, 2020
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

Tested with existing VMD easyconfigs, still works like a charm.

@boegel boegel merged commit fc4f4c1 into easybuilders:develop Jul 4, 2020
@bedroge bedroge deleted the vmd_py3 branch July 6, 2020 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix python3 Python 3 compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants