Disable building and installing Python bindings by upstream
authorAmin Bandali <bandali@gnu.org>
Thu, 29 Feb 2024 12:15:24 +0000 (12:15 +0000)
committerBenjamin Drung <bdrung@debian.org>
Thu, 29 Feb 2024 12:15:24 +0000 (12:15 +0000)
Forwarded: not-needed
Last-Update: 2023-08-16

Comment out the build and install bits from python/CMakeLists.txt so
we could do so from debian/rules.

Gbp-Pq: Name 2000-cmake-python-no-build-install.patch

python/CMakeLists.txt

index 595cded0d0f3b4b2603654870dc44f63c4c5fce0..cd74c1852b78cfab4baaca7e979dac63a7338a79 100644 (file)
@@ -5,15 +5,15 @@ set(CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
 configure_file(setup.py.in setup.py)
 configure_file(pyproject.toml pyproject.toml COPYONLY)
 
-add_custom_target(python ALL
-    COMMAND python3 setup.py build
-    DEPENDS opendht opendht_cpp.pxd opendht.pyx pyproject.toml)
+add_custom_target(python ALL
+    COMMAND python3 setup.py build
+    DEPENDS opendht opendht_cpp.pxd opendht.pyx pyproject.toml)
 
-add_custom_target(dist
-    COMMAND python3 -m build
-    DEPENDS opendht opendht_cpp.pxd opendht.pyx pyproject.toml)
+add_custom_target(dist
+    COMMAND python3 -m build
+    DEPENDS opendht opendht_cpp.pxd opendht.pyx pyproject.toml)
 
-install(CODE "execute_process(COMMAND python3 setup.py install --root=\$ENV{DESTDIR}/ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
+install(CODE "execute_process(COMMAND python3 setup.py install --root=\$ENV{DESTDIR}/ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
 if (OPENDHT_TOOLS)
        install(PROGRAMS tools/dhtcluster.py DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME dhtcluster)
-endif()
\ No newline at end of file
+endif()