[Bug 1204541] Re: Python sysconfig._get_makefile_filename() fails inside a virtualenv
hollaburoo
hollaburoo at gmail.com
Thu Aug 8 01:01:10 UTC 2013
Anything that calls _get_makefile_filename() fails.
If you import sysconfig and run sysconfig.get_config_vars() it will
fail.
--
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