FS#50187 - [boost-libs] Python 2/3 bindings

Attached to Project: Arch Linux
Opened by Torsten Wörtwein (torsten) - Thursday, 28 July 2016, 18:05 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 31 July 2016, 13:35 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The boost package doesn't seem to provide python bindings

Additional info:
* package version(s)
* config and/or log files etc.
boost: 1.60.0-5

Steps to reproduce:
# stumble upon it while trying to install dlib's python bindings
$ git clone https://github.com/davisking/dlib.git
$ cd dlib
$ python setup.py install --prefix ~/.local --yes USE_AVX_INSTRUCTIONS
running install
running bdist_egg
running build
Detected Python architecture: 64bit
Detected platform: linux
Removing build directory ~/git/dlib/./tools/python/build
Configuring cmake ...
-- The C compiler identification is GNU 6.1.1
-- The CXX compiler identification is GNU 6.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at /usr/share/cmake-3.6/Modules/FindBoost.cmake:743 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.6/Modules/FindBoost.cmake:842 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.6/Modules/FindBoost.cmake:1395 (_Boost_MISSING_DEPENDENCIES)
~/git/dlib/dlib/cmake_utils/add_python_module:59 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
CMake Warning at /usr/share/cmake-3.6/Modules/FindBoost.cmake:1459 (message):
No header defined for python-py34; skipping header check
Call Stack (most recent call first):
~/git/dlib/dlib/cmake_utils/add_python_module:59 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
-- Could NOT find Boost
CMake Warning at /usr/share/cmake-3.6/Modules/FindBoost.cmake:743 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.6/Modules/FindBoost.cmake:842 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.6/Modules/FindBoost.cmake:1395 (_Boost_MISSING_DEPENDENCIES)
~/git/dlib/dlib/cmake_utils/add_python_module:61 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
-- Could NOT find Boost
-- Found PythonLibs: /usr/lib64/libpython3.5m.so (found suitable version "3.5.2", minimum required is "3.4")
-- *****************************************************************************************************
-- To compile Boost.Python yourself download boost from boost.org and then go into the boost root folder
-- and run these commands:
-- ./bootstrap.sh --with-libraries=python
-- ./b2
-- sudo ./b2 install
-- *****************************************************************************************************
CMake Error at ~/git/dlib/dlib/cmake_utils/add_python_module:107 (message):
Boost python library not found.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
-- Configuring incomplete, errors occurred!
See also "~/git/dlib/tools/python/build/CMakeFiles/CMakeOutput.log".
error: cmake configuration failed!
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 31 July 2016, 13:35 GMT
Reason for closing:  Not a bug
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 30 July 2016, 08:24 GMT
You need to install boost

(sudo) pacman -S boost
Comment by Torsten Wörtwein (torsten) - Saturday, 30 July 2016, 14:29 GMT
oh, thanks for pointing that out! I thought boost-libs would include everything. It works after I installed boost!
Comment by Chih-Hsuan Yen (yan12125) - Sunday, 31 July 2016, 13:16 GMT
I didn't get the point why Doug Newgard rejected the closure request. Python runtime libraries are already in boost-libs:

$ pacman -Ql boost-libs | grep python
boost-libs /usr/lib/libboost_mpi_python.so
boost-libs /usr/lib/libboost_mpi_python.so.1.60.0
boost-libs /usr/lib/libboost_python.so
boost-libs /usr/lib/libboost_python.so.1.60.0
boost-libs /usr/lib/libboost_python3.so
boost-libs /usr/lib/libboost_python3.so.1.60.0

When compiling a program, headers are necessary, aren't they?
Comment by Doug Newgard (Scimmia) - Sunday, 31 July 2016, 13:35 GMT
You're right, I didn't read just what it was looking for. My bad.

Loading...