Opened 10 years ago

Last modified 6 years ago

#2838 assigned Bugs

MPI Python bindings not installed correctly

Reported by: lenzo@… Owned by: Matthias Troyer
Milestone: Boost 1.46.0 Component: mpi
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc: Thomas.Brandes@…


I've successfully built and installed boost.MPI and the Python bindings in my home dir.

Unfortunately, the Python module "" is installed directly in the lib/-path as all the other Boost libs. When setting the PYTHONPATH to point to this location, the boost.mpi python bindings are accessible only via "import mpi" from within Python, and not via "import boost.mpi", as described in the docs at

I think that the Python modules should go to a sudirectory "boost" in the lib path, or it should be fixed in the documentation.

Otherwise, the boost.mpi Python bindings are gorgeous!

Change History (3)

comment:1 Changed 8 years ago by Matthias Troyer

Owner: changed from Douglas Gregor to Matthias Troyer
Status: newassigned

comment:2 Changed 8 years ago by Matthias Troyer

Milestone: Boost-1.46.0

comment:3 Changed 6 years ago by Arfrever.FTA@…

I suggest that build system install in boost subdirectory of appropriate site-packages directory. Build system can use distutils.sysconfig.get_python_lib() to get path to this directory:

$ python -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(plat_specific=True))'
Note: See TracTickets for help on using tickets.