Modify

Opened 9 years ago

Last modified 5 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!

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by Matthias Troyer

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

comment:2 Changed 7 years ago by Matthias Troyer

Milestone: Boost-1.46.0

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

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Matthias Troyer.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.