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

Christian Schneider schneider at gl-systemhaus.de
Thu Jul 25 13:00:37 UTC 2013


Hi,

I'm having the same problem. I have, however, another server with the
same python and ubuntu versions where I can easily install virtualenvs
under /usr/local; the difference is the version of virtualenv 1.7.1.2
(good) vs. 1.10 (bad). So it seems to be an issue with virtualenv.

chris

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




More information about the foundations-bugs mailing list