0
0
mirror of https://github.com/python-LimeReport/pyside.git synced 2024-12-23 22:53:01 +03:00
pyside/build.sh

38 lines
741 B
Bash
Raw Normal View History

2023-08-26 18:34:10 +03:00
#!/bin/bash
qt6_build()
{
python3 setup.py build --parallel "$(nproc)" --limited-api yes
export dir_name=qfpa-py${PYTHON_VERSION}-qt${QT_VERSION}-64bit-release \
tar czvf "/output/$dir_name.tar.gz" -C "./build/$dir_name/install" .
python3 setup.py build --parallel "$(nproc)" bdist_wheel --limited-api yes
cp ./dist/* /output
}
qt5_build()
{
echo "Not implemented"
exit 1
}
mkdir -p /output
cd /opt \
2023-08-27 11:42:24 +03:00
&& git clone -b ${QT_VERSION} https://code.qt.io/pyside/pyside-setup.git \
&& cd pyside-setup \
&& pip3 install -r requirements.txt
2023-08-26 18:34:10 +03:00
case $QT_VERSION in
6*)
qt6_build
;;
5*)
qt5_build
;;
*)
echo "Unsupported version of QT"
exit 1
;;
esac