mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
build/python: copy README.md to build dir
This commit is contained in:
1 parent
075ea59244
commit
60ecb95cf6
2 files changed
+4
-5
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user