find_package(PythonInterp)
find_package(PythonLibs ${PYTHON_VERSION_STRING})
include_directories(${PYTHON_INCLUDE_DIRS})

find_package(NumPy QUIET)
if (NUMPY_FOUND)
    include_directories(${NUMPY_INCLUDE_DIRS})

    find_package(Boost COMPONENTS python)

    add_library(pyamgcl pyamgcl.cpp)
    set_target_properties(pyamgcl PROPERTIES PREFIX "")
    target_link_Libraries(pyamgcl amgcl ${Boost_LIBRARIES})

    configure_file(
        ${CMAKE_CURRENT_SOURCE_DIR}/test_pyamgcl
        ${CMAKE_CURRENT_BINARY_DIR}/test_pyamgcl
        COPYONLY
        )

    if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
        add_test(test_pyamgcl test_pyamgcl)
    endif()
endif()

find_package(PythonInterp)
find_package(PythonLibs ${PYTHON_VERSION_STRING})
include_directories(${PYTHON_INCLUDE_DIRS})

find_package(NumPy QUIET)
if (NUMPY_FOUND)
    include_directories(${NUMPY_INCLUDE_DIRS})

    find_package(Boost COMPONENTS python)

    add_library(pyamgcl pyamgcl.cpp)
    set_target_properties(pyamgcl PROPERTIES PREFIX "")
    target_link_Libraries(pyamgcl amgcl ${Boost_LIBRARIES})

    configure_file(
        ${CMAKE_CURRENT_SOURCE_DIR}/test_pyamgcl
        ${CMAKE_CURRENT_BINARY_DIR}/test_pyamgcl
        COPYONLY
        )

    add_test(test_pyamgcl test_pyamgcl)
endif()

Revert "Do not test pyamgcl built with clang"
Revert "Do not test pyamgcl built with clang"

This reverts commit f56dc3d703e00c564bcf1e3c401ee61f5ddc1c2b.
This was not clang's fault after all (see #6)
