From: John Mulligan Date: Mon, 13 Apr 2026 21:24:39 +0000 (-0400) Subject: python-common: update CMakeLists.txt to optionally use new packaging X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f270a9f6ff1daf5be41f9eef03d513aca12112c;p=ceph.git python-common: update CMakeLists.txt to optionally use new packaging Add support for invoking the new pep517 based packaging mode added in a previous commit. Because this approach will not work on older distros and there seems to be spotty support for the new packging form on debian/ubuntu (when nested within a additional layer like CMake) I am choosing not to enable the new stuff by default. View with `git diff -w` Signed-off-by: John Mulligan --- diff --git a/src/python-common/CMakeLists.txt b/src/python-common/CMakeLists.txt index 08660342a6ab..238302a1189c 100644 --- a/src/python-common/CMakeLists.txt +++ b/src/python-common/CMakeLists.txt @@ -1,5 +1,10 @@ -include(Distutils) -distutils_install_module(ceph) +if(WITH_PYPKG) + include(PythonPackage) + create_python_package(ceph) +else() + include(Distutils) + distutils_install_module(ceph) +endif() if(WITH_TESTS) include(AddCephTest)