FWIW I can reproduce this on Ubuntu 18.04, 20.04, and 22.04 and on multiple architectures (x86_64 and aarch64).
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python2.7 in Ubuntu. https://bugs.launchpad.net/bugs/1739628 Title: sysconfig paths are incorrect Status in python2.7 package in Ubuntu: Confirmed Bug description: On Ubuntu 17.10: $ ls /usr/include/python2.7 abstract.h code.h funcobject.h marshal.h pgenheaders.h pymem.h .... $ ls /usr/local/include/python2.7 ls: cannot access '/usr/local/include/python2.7': No such file or directory $ python -c "import sysconfig; print(sysconfig.get_path('include'))" /usr/local/include/python2.7 Definitely wrong. Python is such a massive pain to integrate with - I actually switched from CMake's FindPythonLibs() which is heuristic-based and very unreliable to sysconfig - "surely python itself knows where it is installed?" I thought. Ha. Of course not. /rant To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1739628/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp