From 60ecb95cf6348609c0a9d0211f09bcc826b9361e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Sun, 24 Aug 2025 16:01:29 -0400 Subject: [PATCH] build/python: copy README.md to build dir --- python/CMakeLists.txt | 8 ++++---- python/setup.py.in | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index c8fbdd56..e0e4dbb3 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -3,19 +3,19 @@ set(CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) configure_file(setup.py.in setup.py) configure_file(pyproject.toml pyproject.toml COPYONLY) +configure_file(README.md README.md COPYONLY) find_package(Python3 REQUIRED COMPONENTS Interpreter) -add_custom_target(python +add_custom_target(python ALL COMMAND ${Python3_EXECUTABLE} -m build . DEPENDS opendht opendht_cpp.pxd opendht.pyx pyproject.toml) install(CODE [[ execute_process( - COMMAND "${Python3_EXECUTABLE}" -m pip install --no-deps . + COMMAND "${Python3_EXECUTABLE}" -m pip install --no-deps --break-system-packages . WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - RESULT_VARIABLE _pip_result - OUTPUT_FILE "toto" ) + RESULT_VARIABLE _pip_result) if(NOT _pip_result EQUAL 0) message(FATAL_ERROR "pip install failed with code ${_pip_result}") endif() diff --git a/python/setup.py.in b/python/setup.py.in index e2b2ed0e..8d00e078 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -24,7 +24,6 @@ setup(name="opendht", description="OpenDHT: A lightweight Distributed Hash Table", long_description=long_description, long_description_content_type="text/markdown", - icon="opendht_icon.png", url='https://github.com/savoirfairelinux/opendht', author="Adrien Beraud ", license="GPL-3.0-or-later",