Python: fix up debug package #298

This commit is contained in:
nick black 2020-01-28 16:43:02 -05:00
parent a340286b49
commit c1c25afcc7
4 changed files with 17 additions and 7 deletions

View File

@ -500,4 +500,4 @@ install(TARGETS notcurses
) )
install( install(
CODE CODE
"execute_process(COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ../python)") "execute_process(COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --install-layout=deb --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ../python)")

12
debian/control vendored
View File

@ -63,9 +63,19 @@ Description: Binaries from libnotcurses
notcurses-view, notcurses-planereel, and notcurses-input. notcurses-view, notcurses-planereel, and notcurses-input.
Package: python3-notcurses Package: python3-notcurses
Architecture: all Architecture: any
Depends: ${python3:Depends}, ${misc:Depends} Depends: ${python3:Depends}, ${misc:Depends}
Description: Python wrappers for notcurses (Python 3) Description: Python wrappers for notcurses (Python 3)
Python wrappers for the notcurses TUI library. Python wrappers for the notcurses TUI library.
. .
This package installs the library for Python 3. This package installs the library for Python 3.
Package: python3-notcurses-dbg
Architecture: any
Section: debug
Recommends: python3-dbg
Depends: ${python3:Depends}, ${misc:Depends}, python3-notcurses (= ${binary:Version})
Description: Python wrappers for notcurses (Python 3 debug)
Python wrappers for the notcurses TUI library.
.
This package installs the debug-enabled library for Python 3.

7
debian/rules vendored
View File

@ -8,7 +8,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=notcurses export PYBUILD_NAME=notcurses
%: %:
dh $@ --buildsystem=cmake dh $@ --with python3 --buildsystem=cmake
# dh_auto_test -O--buildsystem=cmake -O--no-parallel # dh_auto_test -O--buildsystem=cmake -O--no-parallel
# Don't try to run ncurses tests # Don't try to run ncurses tests
@ -17,6 +17,5 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
cd obj-x86_64-linux-gnu && env -u TERM make test cd obj-x86_64-linux-gnu && env -u TERM make test
endif endif
# support building a Python debugging package override_dh_auto_install:
override_dh_strip: dh_auto_install -B $(BUILDDIR)
dh_strip -ppython3-foo --dbg-package=python3-foo-dbg

View File

@ -8,7 +8,8 @@ notcurses-demo - Show off some notcurses features
# SYNOPSIS # SYNOPSIS
**notcurses-demo** [**-h|--help**] [**-p path**] [**-d delaymult**] [**-l loglevel**] [**-kHVc**] demospec **notcurses-demo** [**-h|--help**] [**-p path**] [**-d delaymult**]
[**-l loglevel**] [**-kHVc**] demospec
# DESCRIPTION # DESCRIPTION