Skip to content

Remove --break-system-packages flag from aqtinstall installation just for Ubuntu 22.04 compatibility #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion qt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ apt install 'libxcb*-dev' \
libxrender-dev \
libxi-dev -y

pip3 install aqtinstall --break-system-packages
UBUNTU_VERSION=$(lsb_release -rs)

if dpkg --compare-versions "$UBUNTU_VERSION" ge "24.04"; then
pip3 install aqtinstall --break-system-packages
else
pip3 install aqtinstall
fi

rm -rf "${TMP_WORK_DIR}"
mkdir -p "${TMP_WORK_DIR}"
Expand Down