[Bug 1739628] [NEW] sysconfig paths are incorrect

Timmmm 1739628 at bugs.launchpad.net
Thu Dec 21 15:23:28 UTC 2017


Public bug reported:

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

** Affects: python2.7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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:
  New

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