From: Amin Bandali Date: Wed, 22 Feb 2023 20:20:06 +0000 (-0500) Subject: Disable building and installing Python bindings by upstream X-Git-Tag: archive/raspbian/3.0.1-1.1+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=734b73aa24840f004eaf37c72f4502d36c9436e4;p=opendht.git Disable building and installing Python bindings by upstream Forwarded: no Last-Update: 2023-01-29 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 --- 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()