Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed issue that was causing the wrong cython executable from being c…
Browse files Browse the repository at this point in the history
…alled when building the editable wheel
  • Loading branch information
daminton committed Sep 18, 2023
1 parent f341a78 commit ba23e4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildscripts/install_editable_debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd ${ROOT_DIR}
python3 -m venv ${VENV_DIR}
. ${VENV_DIR}/bin/activate
python3 -m pip install --upgrade pip
pip install scikit-build-core pyproject-metadata pathspec ninja
pip install scikit-build-core pyproject-metadata pathspec ninja cython
pip install --config-settings=editable.rebuild=true \
--config-settings=build-dir="build/{wheel_tag}" \
--config-settings=cmake.build-type="Debug" \
Expand Down
10 changes: 9 additions & 1 deletion swiftest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@

SET(SWIFTEST_BINDINGS _bindings)

FIND_PROGRAM(CYTHON "cython")
# Find the Cython executable, but don't look in the cmake root directory (due how cmake and cython are installed on the RCAC system)
FIND_PROGRAM(CYTHON
NAMES "cython"
NO_CMAKE_PATH
NO_CMAKE_ENVIRONMENT_PATH
NO_CMAKE_SYSTEM_PATH
NO_CMAKE_FIND_ROOT_PATH
)
MESSAGE(STATUS "Cython executable path: ${CYTHON}")
ADD_CUSTOM_COMMAND(
OUTPUT "${SWIFTEST_BINDINGS}.c"
DEPENDS "${SWIFTEST_BINDINGS}.pyx"
Expand Down

0 comments on commit ba23e4f

Please sign in to comment.