[issue36383] In Windows 10 virtual environments distutils.sysconfig.get_python_inc() reports base Python include directory

Mark Campanelli report at bugs.python.org
Wed Mar 20 12:53:48 EDT 2019


New submission from Mark Campanelli <campanelli at resonon.com>:

On Windows 10 64bit, using virtualenv in Python 2.7.15 or venv in Python 3.7.2, calling distutils.sysconfig.get_python_inc() returns the path to the include directory for the (respective) Python base installation instead of the include directory installed with the virtual environment. This happens regardless of the True/False value of the  plat_specific argument. I would expect the virtual environment's include directory to be returned.

----------
components: Distutils
messages: 338494
nosy: Mark Campanelli, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: In Windows 10 virtual environments distutils.sysconfig.get_python_inc() reports base Python include directory
type: behavior
versions: Python 2.7, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36383>
_______________________________________


More information about the Python-bugs-list mailing list