diff --git a/python3-pyside6.changes b/python3-pyside6.changes index 3eef0c2..af65768 100644 --- a/python3-pyside6.changes +++ b/python3-pyside6.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 5 19:17:03 UTC 2024 - Ben Greiner + +- Tumbleweed now has numpy2: Fix include path + ------------------------------------------------------------------- Wed Jun 19 07:48:28 UTC 2024 - Christophe Marin diff --git a/python3-pyside6.spec b/python3-pyside6.spec index 2be76de..f9d32c3 100644 --- a/python3-pyside6.spec +++ b/python3-pyside6.spec @@ -181,6 +181,9 @@ sed -i 's#purelib#platlib#' sources/shiboken6/cmake/ShibokenHelpers.cmake pushd sources/%{pyside_flavor} +# numpy changed the include path on 2.0 +numpyinc=$(%{__mypython} -c 'import numpy; print(numpy.get_include())') + # NOTE:The compiler and linker flags shall not be defined %cmake_qt6 \ -DBUILD_TESTS:BOOL=ON \ @@ -189,7 +192,7 @@ pushd sources/%{pyside_flavor} -DCMAKE_CXX_FLAGS:STRING="" \ -DCMAKE_EXE_LINKER_FLAGS:STRING="" \ -DPython_EXECUTABLE:STRING=%{__mypython} \ - -DNUMPY_INCLUDE_DIR:STRING=%{mypython_sitearch}/numpy/core/include \ + -DNUMPY_INCLUDE_DIR:STRING=${numpyinc} \ -DCMAKE_BUILD_RPATH_USE_ORIGIN:BOOL=ON \ %if "%{pyside_flavor}" == "shiboken6" -DCMAKE_SKIP_RPATH:BOOL=ON \