Skip to content

Commit

Permalink
fix: Copy pyproject.toml before it is used
Browse files Browse the repository at this point in the history
  • Loading branch information
sindre-nistad committed Jan 23, 2024
1 parent dd56f8d commit 64f5a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/python-venv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ find_package(Python3 REQUIRED COMPONENTS Interpreter)
if (NOT VENV_INITIALIZED)
message(STATUS "Installing necessary dependencies in ${CMAKE_BINARY_DIR}/venv")

file(COPY_FILE ${CMAKE_SOURCE_DIR}/pyproject.toml ${CMAKE_BINARY_DIR}/pyproject.toml)
# Ensure pip ins up do date
execute_process(
COMMAND ${Python3_EXECUTABLE} -m pip install --upgrade pip
Expand Down Expand Up @@ -52,7 +53,6 @@ except ImportError:
COMMAND_ERROR_IS_FATAL ANY
)
execute_process(
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/pyproject.toml pyproject.toml
COMMAND ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR}/bin/install-build-requirements.py
COMMAND_ERROR_IS_FATAL ANY
)
Expand Down

0 comments on commit 64f5a8f

Please sign in to comment.