[Bug 1739628] Re: sysconfig paths are incorrect

Steven Clarkson 1739628 at bugs.launchpad.net
Tue Sep 10 02:22:08 UTC 2019


I've been using this as a workaround.

from distutils.sysconfig
print(distutils.sysconfig.get_python_inc())

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, 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



More information about the foundations-bugs mailing list