Hello. The attached patch works around this bug in python-igraph.
The issue should probably be fixed globally by adding 'm' in package python3-stdlib-extensions in file debian/patches/3.7/distutils-install-layout.diff in line 'headers': '$base/include/python$py_version_short/$dist_name' but I am not an expert in Python packaging, so I would like your opinion before opening a bug against python3-stdlib-extensions. Ideally, the bug number would be added to a comment in debian/rules so that we know when the work-around can be removed.
--- a/debian/compat +++ /dev/null @@ -1,1 +0,0 @@ -11 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Maintainer: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org> Uploaders: TANIGUCHI Takaki <tak...@debian.org>, Hugo Lefeuvre <h...@debian.org> -Build-Depends: debhelper (>= 11), +Build-Depends: debhelper-compat (= 12), dh-python, libigraph-dev, pkg-config, @@ -17,6 +17,7 @@ Build-Depends: debhelper (>= 11), python3-setuptools, python3-texttable Standards-Version: 4.3.0 +Rules-Requires-Root: no Testsuite: autopkgtest-pkg-python Homepage: http://igraph.org/python/ Vcs-Git: https://salsa.debian.org/python-team/modules/python-igraph.git --- a/debian/rules +++ b/debian/rules @@ -3,11 +3,19 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export PYBUILD_NAME=igraph +# Work around #920337. The proper fix probably adds 'm' +# in package python3-stdlib-extensions +# in file debian/patches/3.7/distutils-install-layout.diff +# in line 'headers': '$base/include/python$py_version_short/$dist_name' +export PYBUILD_INSTALL_ARGS_python3 := \ + --install-headers=/usr/include/python{version}m + %: # Ensure that the embedded copy is never used. rm -f vendor/texttable.py dh $@ --with python2,python3 --buildsystem=pybuild +# Disable the scripts= option in setup.cfg. See #664443. override_dh_auto_install: dh_auto_install rm -f $(CURDIR)/debian/python-igraph/usr/bin/igraph --- a/debian/watch +++ b/debian/watch @@ -1,3 +1,2 @@ -version=3 -https://pypi.debian.net/python-igraph/python-igraph-(.*)\.tar\.gz - +version=4 +https://pypi.debian.net/@PACKAGE@/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@