gnu: python-wxpython: Add a debug output

* gnu/packages/wxwidgets.scm (python-wxpython) [outputs]: New field.
[arguments]: Provide the '--debug' build option in the configure phase.
This commit is contained in:
Maxim Cournoyer 2023-05-03 21:41:05 -04:00
parent 679dcb403e
commit ae6643326a
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -282,6 +282,7 @@ (define-public python-wxpython
(delete-file-recursively "ext/wxWidgets")))
(patches (search-patches "python-wxwidgets-type-errors.patch"))))
(build-system python-build-system)
(outputs '("out" "debug"))
(arguments
(list
#:phases
@ -290,7 +291,9 @@ (define-public python-wxpython
(lambda* (#:key inputs #:allow-other-keys)
;; Configure the build options provided to the 'build.py' build
;; script.
(setenv "WXPYTHON_BUILD_ARGS" "--use_syswx") ;use system wxwidgets
(setenv "WXPYTHON_BUILD_ARGS"
(string-join '("--debug" ;include debug symbols
"--use_syswx"))) ;use system wxwidgets
(setenv "WXWIN" #$(this-package-input "wxwidgets"))
;; Copy the waf executable to the source directory since it needs
;; to be in a writable directory.