Partial undo last commit; there are still issues with pyside
This commit is contained in:
parent
5aa12a2cd1
commit
e9dfd57429
1 changed files with 8 additions and 0 deletions
8
PKGBUILD
8
PKGBUILD
|
@ -30,6 +30,10 @@ pkgver() {
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}"
|
cd "${srcdir}/${pkgname}"
|
||||||
|
|
||||||
|
# we need to manually set all PYSIDE_* paths as autodetection is broken:
|
||||||
|
# https://github.com/FreeCAD/FreeCAD/pull/2020
|
||||||
|
PYVER="$(/usr/bin/python3 -c 'import sys; print("{}.{}".format(sys.version_info.major,sys.version_info.minor))')"
|
||||||
|
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX="/usr/lib/freecad" \
|
-DCMAKE_INSTALL_PREFIX="/usr/lib/freecad" \
|
||||||
|
@ -39,6 +43,10 @@ build() {
|
||||||
-DBUILD_QT5=ON \
|
-DBUILD_QT5=ON \
|
||||||
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
||||||
-DOPENMPI_INCLUDE_DIRS=/usr/include \
|
-DOPENMPI_INCLUDE_DIRS=/usr/include \
|
||||||
|
-DPYSIDE_INCLUDE_DIR="/usr/include/PySide2" \
|
||||||
|
-DPYSIDE_LIBRARY="/usr/lib/libpyside2.cpython-${PYVER//.}m-${CARCH}-linux-gnu.so" \
|
||||||
|
-DPYSIDE_PYTHONPATH="/usr/lib/python${PYVER}/site-packages/PySide2" \
|
||||||
|
-DPYSIDE_TYPESYSTEMS="/usr/share/PySide2/typesystems" \
|
||||||
.
|
.
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue