← Back to team overview

touch-packages team mailing list archive

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

 

Noboy is working on this bug? Is there any workaround for it?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  Confirmed

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