set(ENV{CYTHON_BUILD_DIR} \"${CMAKE_CURRENT_BINARY_DIR}\")
set(ENV{CEPH_LIBDIR} \"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}\")
- set(options --prefix=${CMAKE_INSTALL_PREFIX})
+ set(options
+ --prefix=${CMAKE_INSTALL_PREFIX}
+ --use-pep517
+ --no-build-isolation
+ --no-deps
+ --ignore-installed)
if(DEFINED ENV{DESTDIR})
- if(EXISTS /etc/debian_version)
- list(APPEND options --install-layout=deb)
- endif()
list(APPEND options --root=\$ENV{DESTDIR})
else()
list(APPEND options --root=/)
endif()
execute_process(
COMMAND
- ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/setup.py
- build ${maybe_verbose} --build-base ${CYTHON_MODULE_DIR}
- --build-platlib ${CYTHON_MODULE_DIR}/lib.3
- build_ext --cython-c-in-temp --build-temp ${CMAKE_CURRENT_BINARY_DIR} --cython-include-dirs ${PROJECT_SOURCE_DIR}/src/pybind/rados
- install \${options} --single-version-externally-managed --record /dev/null
- egg_info --egg-base ${CMAKE_CURRENT_BINARY_DIR}
+ ${Python3_EXECUTABLE} -m pip install
+ \${options}
${maybe_verbose}
- WORKING_DIRECTORY \"${CMAKE_CURRENT_SOURCE_DIR}\"
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ WORKING_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}\"
RESULT_VARIABLE install_res)
if(NOT \"\${install_res}\" STREQUAL 0)
message(FATAL_ERROR \"Failed to build and install ${name} python module\")