mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
python: don't guard with DFSG_BUILD; we use USE_PYTHON
This commit is contained in:
parent
f92a5805bd
commit
2c98639005
@ -604,11 +604,10 @@ write_basic_package_version_file(
|
|||||||
COMPATIBILITY SameMajorVersion
|
COMPATIBILITY SameMajorVersion
|
||||||
)
|
)
|
||||||
|
|
||||||
# Python bindings
|
# Python bindings. When we're building debs, we use pybuild to directly call
|
||||||
|
# into setup.py, so none of this applies---debian/rules sets USE_PYTHON=off.
|
||||||
|
# arch also doesn't use it. fedora does.
|
||||||
if(${USE_PYTHON})
|
if(${USE_PYTHON})
|
||||||
# when we're building debs, we use pybuild to directly call into setup.py,
|
|
||||||
# so none of this applies. arch also doesn't use it. fedora does.
|
|
||||||
if(NOT "${DFSG_BUILD}")
|
|
||||||
find_package(Python3 COMPONENTS Development Interpreter REQUIRED)
|
find_package(Python3 COMPONENTS Development Interpreter REQUIRED)
|
||||||
file(GLOB PYSRC CONFIGURE_DEPENDS python/src/notcurses/*.py)
|
file(GLOB PYSRC CONFIGURE_DEPENDS python/src/notcurses/*.py)
|
||||||
file(COPY python/src/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/python/src)
|
file(COPY python/src/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/python/src)
|
||||||
@ -640,7 +639,6 @@ if(${USE_PYTHON})
|
|||||||
${CMAKE_CURRENT_BINARY_DIR}/python
|
${CMAKE_CURRENT_BINARY_DIR}/python
|
||||||
)
|
)
|
||||||
install(CODE "execute_process(COMMAND ${Python3_EXECUTABLE} setup.py install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python)")
|
install(CODE "execute_process(COMMAND ${Python3_EXECUTABLE} setup.py install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python)")
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Rust bindings
|
# Rust bindings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user