New issue 2392: Differences with sysconfig + distutils.sysconfig undervirtualenv
https://bitbucket.org/pypy/pypy/issues/2392/differences-with-sysconfig
Stuart Axon:
There are some differences with sysconfig and distutils.sysconfig when under a
virtualenv. I get_path('include') is wrong but others may be too - needs
further testing.
Here is my original message mail to the list:
----------------------------------------------------------------------
If I create a virtualenv: /mnt/data/home/stu/.virtualenvs/pypy-venv
Then run try and get the include path using sysconfig it is incorrect:
>>>> import sysconfig
>>>> sysconfig.get_path('include')
'/mnt/data/home/stu/local/include'
It should be:
/mnt/data/home/stu/.virtualenvs/pypy-venv/include
or possibly where that symlink points to:
/usr/lib/pypy/include
This then affects python-config which means I get stuck trying to compile
pygobject.
S++
----------------------------------------------------------------------
A bit more info:
sysconfig._get_default_scheme() returns 'pypy-local'. If I change this to
return 'pypy' then the include path is correct.
I'm not fully sure how it supposed to decide between the two ?
S++
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue