[pypy-issue] Issue #2392: Differences with sysconfig + distutils.sysconfig undervirtualenv (pypy/pypy)

Stuart Axon issues-reply at bitbucket.org
Sat Sep 3 11:19:33 EDT 2016

New issue 2392: Differences with sysconfig + distutils.sysconfig undervirtualenv

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')

It should be:
or possibly where that symlink points to:

This then affects python-config which means I get stuck trying to compile pygobject.



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 ?

More information about the pypy-issue mailing list