xtensor-stack / xtensor-python

Python bindings for xtensor
BSD 3-Clause "New" or "Revised" License
347 stars 58 forks source link

Tests FTBFS in standalone mode #70

Closed ghisvail closed 7 years ago

ghisvail commented 7 years ago

Looks like when I try to build the test project standalone with the xtensor-python-dev package (which pulls xtensor-dev and pybind11-dev), the necessary include path for the Python headers is missing:

[ 55%] Building CXX object CMakeFiles/test_xtensor_python.dir/main.cpp.o
/usr/bin/c++    -I/home/gvaillan/debian/packages/xtensor-python/build/googletest-src/googletest/include  -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion -std=c++14 -O3 -DNDEBUG   -o CMakeFiles/test_xtensor_python.dir/main.cpp.o -c /home/gvaillan/debian/packages/xtensor-python/test/main.cpp
/home/gvaillan/debian/packages/xtensor-python/test/main.cpp:9:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.

I wonder which part in the root CMakeLists.txt is adding it. Perhaps the Numpy CMake detection which is missing from test/CMakeLists.txt?

JohanMabille commented 7 years ago

This problem has been fixed.