Bug#950811: python3-pybind11: Wrong path returned by get_include

Marc Glisse marc.glisse at normalesup.org
Thu Feb 6 20:12:59 GMT 2020


Package: python3-pybind11
Version: 2.4.3-2
Severity: minor

Dear Maintainer,

>>> import pybind11
>>> pybind11.get_include(True)
'/home/glisse/.local/include/python3.7m'
>>> pybind11.get_include(False)
'/usr/local/include/python3.7'

$ python3 -m pybind11 --includes
-I/usr/include/python3.7m -I/usr/local/include/python3.7 -I/home/glisse/.local/include/python3.7m

None of those paths correspond to the place where pybind11 headers are
actually installed (/usr/include). In most cases it won't matter much
because the compiler will look in /usr/include by default. I wonder if
the body of the function should be replaced with print('/usr/include')
on a platform like Debian...

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'testing'), (500, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-3-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-pybind11 depends on:
ii  pybind11-dev  2.4.3-2
ii  python3       3.7.5-3

Versions of packages python3-pybind11 recommends:
ii  python3-numpy  1:1.17.4-5

python3-pybind11 suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list