0
0
mirror of https://github.com/python-LimeReport/pyside.git synced 2024-12-23 22:53:01 +03:00
This commit is contained in:
Maxim Slipenko 2023-08-28 09:32:00 +03:00
parent deacd813b4
commit 297bc5562d

View File

@ -2,10 +2,10 @@
qt6_build() 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 python3 setup.py build --parallel "$(nproc)" bdist_wheel --limited-api yes
export dir_name=qfpa-py${PYTHON_VERSION}-qt${QT_VERSION}-64bit-release
export archive_name=extra-${PYTHON_PLATFORM}
tar czvf "/output/$dir_name.tar.gz" -C "./build/$dir_name/install" .
cp ./dist/* /output cp ./dist/* /output
} }
@ -15,12 +15,26 @@ qt5_build()
exit 1 exit 1
} }
get_variables()
{
export PYTHON_PLATFORM=$(python3 -c "from packaging.tags import sys_tags; print(next(sys_tags()).platform.lower().replace(\"-\", \"_\").replace(\".\", \"_\").replace(\" \", \"_\"))")
}
init()
{
get_variables
mkdir -p /output mkdir -p /output
cd /opt \ cd /opt \
&& git clone -b ${QT_VERSION} https://code.qt.io/pyside/pyside-setup.git \ && git clone -b ${QT_VERSION} https://code.qt.io/pyside/pyside-setup.git \
&& cd pyside-setup \ && cd pyside-setup \
&& pip3 install -r requirements.txt && pip3 install -r requirements.txt
}
main()
{
init
case $QT_VERSION in case $QT_VERSION in
6*) 6*)
@ -34,4 +48,6 @@ case $QT_VERSION in
exit 1 exit 1
;; ;;
esac esac
}