From e34e3500ec010532d55a552a053bf05da8472c68 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 22 Dec 2023 07:29:01 +0000 Subject: [PATCH] Disable building and installing Python bindings by upstream 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 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 595cded..cd74c18 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -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() -- 2.30.2