https://tracker.freecadweb.org/view.php?id=4195
Shiboken 5.14 apparently fixes this.
The Pyside2 manifest entry looks like this (I've changed the source archive to 5.14):
Code: Select all
- name: pyside2
buildsystem: simple
build-commands:
- mkdir -p /app/qt5include && cp -R /usr/include/Qt* /app/qt5include # https://bugreports.qt.io/browse/PYSIDE-787
- cd sources/shiboken2 && mkdir _build && cd _build &&
cmake -GNinja
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=/app
-DUSE_PYTHON_VERSION=3
-DBUILD_TESTS=OFF .. &&
ninja install
- cd sources/pyside2 && mkdir _build && cd _build &&
cmake -GNinja
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=/app
-DUSE_PYTHON_VERSION=3
-DBUILD_TESTS=OFF .. &&
ninja install
- cd sources/pyside2-tools && mkdir _build && cd _build &&
cmake -GNinja
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=/app
-DBUILD_TESTS=OFF .. &&
ninja install
cleanup:
- /qt5include
- /bin
sources:
- type: archive
url: https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.14.1-src/pyside-setup-opensource-src-5.14.1.tar.xz
sha256: 41ce931695567639c92acb68a9d66ed5609f067011af9a94b53fc0d697ad1d1c
- type: shell
commands:
- sed -i 's|\(--include-paths=\)|\1/app/qt5include:|' sources/pyside2/cmake/Macros/PySideModules.cmake
Code: Select all
Running: cd sources/pyside2 && mkdir _build && cd _build && cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/app -DUSE_PYTHON_VERSION=3 -DBUILD_TESTS=OFF .. && ninja install
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:47 (message):
Could not identify PySide2 version. Error:
-- Configuring incomplete, errors occurred!
See also "/run/build/pyside2/sources/pyside2/_build/CMakeFiles/CMakeOutput.log".
Error: module pyside2: Child process exited with code 1