blob: 7536b71a69b413b20efe20b9e39838dbe642ccc0 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From a53ed6b2f967a5f95e69d51cad3f8c120d7df65b Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 7 Feb 2019 15:21:15 +0100
4Subject: [PATCH] setup.py: do not query for include dir
5
6As this will return the native python directory erroneously.
7
8Upstream-Status: Inappropriate [oe-core specific]
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10---
11 setup.py | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/setup.py b/setup.py
15index 86d6c5a..5d22291 100755
16--- a/setup.py
17+++ b/setup.py
18@@ -52,7 +52,7 @@ from _setupares import ARES
19 # Get access to the greenlet header file.
20 # The sysconfig dir is not enough if we're in a virtualenv
21 # See https://github.com/pypa/pip/issues/4610
22-include_dirs = [sysconfig.get_path("include")]
23+include_dirs = []
24 venv_include_dir = os.path.join(sys.prefix, 'include', 'site',
25 'python' + sysconfig.get_python_version())
26 venv_include_dir = os.path.abspath(venv_include_dir)