From 1d4b40f60d2db2a4c2a8e4a8e489092c5aa85b1d Mon Sep 17 00:00:00 2001 From: George Pimm Date: Thu, 21 Nov 2024 10:08:54 +0000 Subject: [PATCH] INSTX-7467 Remove use of build --- CHANGELOG.md | 1 + c++/pod5_format_pybind/build_wheel.cmake | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bac931..5bbc99e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Refactored Multi-threading in `DatasetReader` to prevent too many open files errors - Updated dependency to `pyarrow~=18.0.0` for `python>=3.9` - Relaxed h5py python dependency +- Removed use of python `build` when building wheel in cmake. ## [0.3.21] diff --git a/c++/pod5_format_pybind/build_wheel.cmake b/c++/pod5_format_pybind/build_wheel.cmake index d6b53f1..93b6ec0 100644 --- a/c++/pod5_format_pybind/build_wheel.cmake +++ b/c++/pod5_format_pybind/build_wheel.cmake @@ -10,10 +10,10 @@ set(ENV{POD5_PYBIND_LIB} "${PYBIND_INPUT_LIB}") file(COPY "${PYBIND_INPUT_LIB}" DESTINATION "${PYTHON_PROJECT_DIR}/src/lib_pod5") -message(" using: ${PYTHON_EXECUTABLE} -m build --outdir ${WHEEL_OUTPUT_DIR}") +message(" using: ${PYTHON_EXECUTABLE} -m pip wheel . --wheel-dir ${WHEEL_OUTPUT_DIR}") execute_process( - COMMAND ${PYTHON_EXECUTABLE} -m build --outdir ${WHEEL_OUTPUT_DIR} + COMMAND ${PYTHON_EXECUTABLE} -m pip wheel . --wheel-dir ${WHEEL_OUTPUT_DIR} WORKING_DIRECTORY "${PYTHON_PROJECT_DIR}/" RESULT_VARIABLE exit_code OUTPUT_VARIABLE output