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

Distribute Python Bindings #19

Open
SamFurman opened this issue Aug 14, 2020 · 0 comments
Open

Distribute Python Bindings #19

SamFurman opened this issue Aug 14, 2020 · 0 comments

Comments

@SamFurman
Copy link
Contributor

It would be awesome if users could install and use the Python bindings.

Python setuptools

This was my first choice because I was familiar with using pip to configure python virtual environments. Unfortunately, when using wheel to build a whl distribution the C extension module that relies on libmpibind does not get its rpath configured correctly. setuptools does not use libtools to invoke the linker so the resulting extension module behaves differently compared to the extension module generated by our autotools setup.

Here are some steps that we could take in this direction:

  • explore the possibility of linking with the static libmpibind.a
  • It seems like the creators of setuptools are aware of this issue and their auditwheel tool provides functionality for injecting a shared object into the wheel distribution. The auditwheel package is not installed on lc systems so that would require some addtional configuration

Spack

I have not looked into this too much yet, but it seems like it could be a good alternative to setuptools.

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

No branches or pull requests

1 participant