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