Skip to content

Commit

Permalink
bump pybind11 version to VG/v2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Dec 20, 2023
1 parent f0115e9 commit 8729c96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.12)
FetchContent_Declare(
pybind11
GIT_REPOSITORY https://github.com/ValeevGroup/pybind11.git
GIT_TAG 80d452484c5409444b0ec19383faa84bb7a4d351 # v2.4.3
GIT_TAG ValeevGroup/v2.11
)
FetchContent_MakeAvailable(pybind11)

Expand Down Expand Up @@ -39,19 +39,19 @@ if (BUILD_TESTING)

# check for presence of prerequisite modules
foreach(_mod pytest numpy)
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import ${_mod}"
execute_process(COMMAND ${Python_EXECUTABLE} -c "import ${_mod}"
OUTPUT_QUIET ERROR_QUIET
RESULTS_VARIABLE check_for_${_mod})
if (check_for_${_mod})
message(FATAL_ERROR "Python module \"${_mod}\" is not installed; install via \"${PYTHON_EXECUTABLE} -m pip install ${_mod}\" and rerun cmake")
message(FATAL_ERROR "Python module \"${_mod}\" is not installed; install via \"${Python_EXECUTABLE} -m pip install ${_mod}\" and rerun cmake")
endif(check_for_${_mod})
endforeach(_mod)

# test step
add_test(
NAME tiledarray/unit/python/run
# need to use pytest to find tiledarray module properly
COMMAND ${PYTHON_EXECUTABLE} -m pytest ${PROJECT_SOURCE_DIR}/test_tiledarray.py -v
COMMAND ${Python_EXECUTABLE} -m pytest ${PROJECT_SOURCE_DIR}/test_tiledarray.py -v
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
)
set_tests_properties(tiledarray/unit/python/run
Expand Down

0 comments on commit 8729c96

Please sign in to comment.