build/python: copy README.md to build dir

This commit is contained in:
Adrien Béraud committed 2025-08-24 16:01:29 -04:00
1 parent 075ea59244
commit 60ecb95cf6
2 files changed
+4 -5

No files matched your search

+4 -4
View File
@@ -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()
-1
View File
@@ -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 <adrien.beraud@savoirfairelinux.com>",
license="GPL-3.0-or-later",