Skip to content

Commit f72186c

Browse files
committed
PySide python include fix
Find the Python includes relative to the Python binary Signed-off-by: Jean-Francois Panisset <[email protected]>
1 parent a41a857 commit f72186c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
--- a/build_scripts/build_info_collector.py
22
+++ b/build_scripts/build_info_collector.py
3-
@@ -65,7 +65,7 @@
3+
@@ -65,8 +65,8 @@
44
py_include_dir):
55
"""Helper for finding the Python library on UNIX"""
66
if py_libdir is None or not Path(py_libdir).exists():
77
- py_libdir = Path(py_prefix) / "lib"
8+
- if py_include_dir is None or not Path(py_include_dir).exists():
89
+ py_libdir = Path(py_prefix) / "lib64"
9-
if py_include_dir is None or not Path(py_include_dir).exists():
10+
+ if True or py_include_dir is None or not Path(py_include_dir).exists():
1011
directory = f"include/python{py_version}"
1112
py_include_dir = Path(py_prefix) / directory
13+
lib_exts = ['.so']

0 commit comments

Comments
 (0)