Skip to content

Distribute Python Bindings #19

Open
@SamFurman

Description

@SamFurman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions