Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Jul 17, 2023
1 parent ca01afc commit 9b14d17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Append `_configured` to the file name so it doesn't interfere with tests
# Append `_configured` to the file name so it doesn't interfere with tests.
# This happens because pytest will load the `gz.msgs` package from the build directory
# (because there's an __init__.py file there) instead of being redirected to
# `gz.msgs10` in the install directory, which is the intent of this `__init__.py` file.
set(python_init_file ${PROJECT_BINARY_DIR}/python/gz/${GS_DESIGNATION}/__init__.py_configured)
configure_file(${PROJECT_SOURCE_DIR}/python/src/__init__.py.in ${python_init_file})

Expand All @@ -15,7 +18,6 @@ if (BUILD_TESTING AND NOT WIN32)
if(${PYTEST_result} EQUAL 0)
set(pytest_FOUND TRUE)
else()
message("")
message(WARNING "Pytest package not available: ${PYTEST_error}")
message(WARNING "Output: ${PYTEST_output}")
endif()
Expand Down

0 comments on commit 9b14d17

Please sign in to comment.