Python: build debian packages successfully #298

With this, we can finally build Python Debian packages. Of course,
it wrecks our standard Python installation capabilities. I'll need
fix that. I'm talking on #debian-python IRC now.
This commit is contained in:
nick black 2020-01-28 19:00:42 -05:00
parent c1c25afcc7
commit a2f061a91d
2 changed files with 1 additions and 11 deletions

View File

@ -500,4 +500,4 @@ install(TARGETS notcurses
)
install(
CODE
"execute_process(COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --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} WORKING_DIRECTORY ../python)")

10
debian/control vendored
View File

@ -69,13 +69,3 @@ Description: Python wrappers for notcurses (Python 3)
Python wrappers for the notcurses TUI library.
.
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.