From 0271ba5abf6358cc67a581493c67e8302f1d2dab Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 4 Feb 2020 02:12:14 -0500 Subject: [PATCH] python: fix debuild when no notcurses is present --- CMakeLists.txt | 5 ++++- debian/control | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d74b7d622..20d910e8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/debian/control b/debian/control index 65a3e3c7c..926257594 100644 --- a/debian/control +++ b/debian/control @@ -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)