[Bug 1204541] [NEW] Python sysconfig._get_makefile_filename() fails inside a virtualenv

hollaburoo hollaburoo at gmail.com
Wed Jul 24 14:41:46 UTC 2013


Public bug reported:

When Python is running inside a virtualenv located in
/usr/local/app/env/ sysconfig._get_makefile_filename() fails on the
first call.

It incorrectly strips "/local" from the path name, trying to read it's
makefile from /usr/app/

The line in question appears to be:

return
os.path.join(get_path('platstdlib').replace("/usr/local","/usr",1),
"config" + (sys.pydebug and "_d" or ""), "Makefile")

I am running on Ubuntu 12.04 LTS with python version 2.7.3-0ubuntu3.2

** Affects: python-defaults (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1204541

Title:
  Python sysconfig._get_makefile_filename() fails inside a virtualenv

Status in “python-defaults” package in Ubuntu:
  New

Bug description:
  When Python is running inside a virtualenv located in
  /usr/local/app/env/ sysconfig._get_makefile_filename() fails on the
  first call.

  It incorrectly strips "/local" from the path name, trying to read it's
  makefile from /usr/app/

  The line in question appears to be:

  return
  os.path.join(get_path('platstdlib').replace("/usr/local","/usr",1),
  "config" + (sys.pydebug and "_d" or ""), "Makefile")

  I am running on Ubuntu 12.04 LTS with python version 2.7.3-0ubuntu3.2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/1204541/+subscriptions




More information about the foundations-bugs mailing list