python: fix debuild when no notcurses is present

This commit is contained in:
nick black 2020-02-04 02:12:14 -05:00
parent ecf921c135
commit 0271ba5abf
2 changed files with 5 additions and 1 deletions

View File

@ -513,7 +513,10 @@ if(${BUILD_PYTHON})
if(DEFINED ENV{DEB_BUILD_ARCH})
install(
CODE
"execute_process(COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --root=${CMAKE_SOURCE_DIR}/debian/python3-notcurses --install-layout=deb --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ../python)")
"execute_process(COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --root=${CMAKE_SOURCE_DIR}/debian/python3-notcurses --install-layout=deb --prefix=${CMAKE_INSTALL_PREFIX} --skip-build
WORKING_DIRECTORY
../python)"
)
else()
install(
CODE

1
debian/control vendored
View File

@ -79,6 +79,7 @@ Description: Binaries from libnotcurses
notcurses-view, notcurses-planereel, and notcurses-input.
Package: python3-notcurses
Section: python
Architecture: any
Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
Description: Python wrappers for notcurses (Python 3)