From 4fdd942a49577984bcc84acf1f7b7e7025d458ba Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sun, 21 Nov 2021 00:01:45 +0100
Subject: use get_python_inc


diff --git a/sipbuild/project.py b/sipbuild/project.py
index 6a12fba..84c8171 100644
--- a/sipbuild/project.py
+++ b/sipbuild/project.py
@@ -22,6 +22,7 @@
 
 
 import collections
+import distutils.sysconfig
 import os
 import packaging
 import shutil
@@ -78,7 +79,7 @@ class Project(AbstractProject, Configurable):
         Option('py_debug', option_type=bool),
 
         # The name of the directory containing Python.h.
-        Option('py_include_dir', default=sysconfig.get_path('include')),
+        Option('py_include_dir', default=distutils.sysconfig.get_python_inc()),
 
         # The name of the target Python platform.
         Option('py_platform'),
-- 
2.30.2

