Package: gi-docgen
Version: 2023.1+ds-4
Severity: normal
File: /usr/lib/python3/dist-packages/gidocgen/gir/ast.py
X-Debbugs-Cc: supe...@gmail.com
When running gi-docgen outside of a package (such as a test build by hand)
it will fail with the following:
usr/bin/gi-docgen generate --quiet
--add-include-path=/github/workspace/fwupd/bulid/docs/../libfwupd
--config=docs/fwupd.toml --output-dir=docs/libfwupd --no-namespace-dir
--content-dir=/github/workspace/fwupd/docs libfwupd/Fwupd-2.0.gir
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gidocgen/gidocmain.py", line 78, in run
res = options.run_func(options)
^
File "/usr/lib/python3/dist-packages/gidocgen/gdgenerate.py", line 3134, in
run
paths.extend(utils.default_search_paths())
File "/usr/lib/python3/dist-packages/gidocgen/utils.py", line 826, in
default_search_paths
multiarch = sysconfig.get_config_var('MULTIARCH')
^
NameError: name 'sysconfig' is not defined
This looks specific to a Debian patch that forgot to import sysconfig.
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.5.11-300.fc39.x86_64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages gi-docgen depends on:
ii python3 3.11.4-5+b1
ii python3-jinja2 3.1.2-1
ii python3-markdown3.4.4-1
ii python3-markupsafe 2.1.3-1
ii python3-pygments2.15.1+dfsg-1
ii python3-typogrify 1:2.0.7-3
gi-docgen recommends no packages.
gi-docgen suggests no packages.
-- no debconf information