]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: update CMakeLists.txt to optionally use new packaging
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 13 Apr 2026 21:24:39 +0000 (17:24 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 6 May 2026 13:33:19 +0000 (09:33 -0400)
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 <jmulligan@redhat.com>
src/python-common/CMakeLists.txt

index 08660342a6ab6acaf698a568e308131a277767d5..238302a1189ce3ec9a0f6d31d54c15d2cc0a29a8 100644 (file)
@@ -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)