Opened 14 years ago

Last modified 10 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@…

Description

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

Unfortunately, the Python module "mpi.so" 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

http://www.boost.org/doc/libs/1_38_0/doc/html/mpi/python.html

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 by Matthias Troyer, 12 years ago

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

comment:2 by Matthias Troyer, 12 years ago

Milestone: Boost-1.46.0

comment:3 by Arfrever.FTA@…, 10 years ago

I suggest that build system install mpi.so 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))'
/usr/lib64/python3.3/site-packages
Note: See TracTickets for help on using tickets.