Skip to content

Commit

Permalink
Fail early if the python venv could not be created (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass authored Jul 4, 2024
1 parent d8d5e37 commit 4805f09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion everest-cmake-config-version.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(PACKAGE_VERSION 0.4.2)
set(PACKAGE_VERSION 0.4.3)

if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
set(PACKAGE_VERSION_EXACT TRUE)
Expand Down
4 changes: 4 additions & 0 deletions python-virtualenv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ macro(ev_create_python_venv)
execute_process(
COMMAND
${Python3_EXECUTABLE} -m venv ${EV_CREATE_PYTHON_VENV_SYSTEM_SITE_PACKAGES_FLAG} ${EV_CREATE_PYTHON_VENV_PATH_TO_VENV}
RESULT_VARIABLE EV_CREATE_PYTHON_VENV_RESULT
)
if(${EV_CREATE_PYTHON_VENV_RESULT} AND NOT ${EV_CREATE_PYTHON_VENV_RESULT} EQUAL 0)
message(FATAL_ERROR "Could not create python venv: ${EV_CREATE_PYTHON_VENV_PATH_TO_VENV}")
endif()
message(STATUS "Created python venv: ${EV_CREATE_PYTHON_VENV_PATH_TO_VENV}")
endmacro()

Expand Down

0 comments on commit 4805f09

Please sign in to comment.