Another unofficial Qt installer
Project description
This is a utility alternative to the official graphical Qt installer, for using in CI environment where an interactive UI is not usable, or just on command line.
It can automatically download prebuilt Qt binaries, documents and sources for target specified, when the versions are on Qt download mirror sites.
License and copyright
This program is distributed under MIT license.
Qt SDK and its related files are under its licenses. When using aqtinstall, you are considered to agree upon Qt licenses. aqtinstall installs Qt SDK as of a (L)GPL Free Software.
For details see Qt licensing and Licenses used in Qt5
Requirements
- Minimum Python version:
3.6
- Recommended Python version:
3.9 (frequently tested on)
- Dependencies:
requests semantic_version patch py7zr texttable bs4 dataclasses; python_version < “3.7” defusedxml
- Operating Systems:
Linux, macOS, MS Windows
Documentation
There is precise documentation with many examples. You are recommended to read the Getting started section.
Getting started: https://aqtinstall.readthedocs.io/en/latest/getting_started.html
Stable (v2.0.x): https://aqtinstall.readthedocs.io/en/stable
Old (v1.2.5) : https://aqtinstall.readthedocs.io/en/v1.2.5/index.html
Install
Same as usual, it can be installed with pip:
pip install -U pip
pip install aqtinstall
You are recommended to update pip before installing aqtinstall.
It may be difficult to set up some Windows systems with the correct version of Python and all of aqt’s dependencies. To get around this problem, aqtinstall offers aqt.exe, a Windows executable that contains Python and all required dependencies. You may access aqt.exe from the Releases section, under “assets”, or via the persistent link to the continuous build of aqt.exe.
Example
When installing Qt SDK 6.2.0 for Windows.
Check the options that can be used with the list-qt subcommand, and query available architectures:
aqt list-qt windows desktop --arch 6.2.0
Then you may get candidates: win64_mingw81 win64_msvc2019_64 win64_msvc2019_arm64. You can also query the available modules:
aqt list-qt windows desktop --modules 6.2.0
When you decide to install Qt SDK version 6.2.0 for mingw v8.1:
aqt install-qt windows desktop 6.2.0 win64_mingw81 -m all
The optional -m all argument installs all the modules available for Qt 6.2.0; you can leave it off if you don’t want those modules.
To install Qt 6.2.0 with the modules ‘qtcharts’ and ‘qtnetworking’, you can use this command (note that the module names are lowercase):
aqt install-qt windows desktop 6.2.0 win64_mingw81 -m qtcharts qtnetworking
When aqtinstall downloads and installs packages, it updates package configurations such as prefix directory in bin/qt.conf, and bin/qconfig.pri to make it working well with installed directory.
Testimonies
Some projects utilize aqtinstall, and there are several articles and discussions
GitHub Actions: install_qt
Docker image: docker aqtinstall
Yet another comic reader: YACReader utilize on Azure-Pipelines
Contributor Nelson’s blog article: Fast and lightweight headless Qt Installer from Qt Mirrors - aqtinstall
Lostdomain.org blog: Using Azure DevOps Pipelines with Qt
Wincak’s Weblog: Using Azure CI for cross-platform Linux and Windows Qt application builds
Qt Forum: Automatic installation for Travis CI (or any other CI)
Qt Forum: Qt silent, unattended install
Reddit: Qt Maintenance tool now requires you to enter your company name
Qt Study group presentation: Another Qt CLI installer
History
This program is originally shown in Kaidan project as a name qli-installer. The aqtinstall project extend and improve it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aqtinstall-2.1.0.tar.gz
.
File metadata
- Download URL: aqtinstall-2.1.0.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e17a0d92b0b126303d99c82847712cb459d7a3d296d0842d387558f02bd6d5 |
|
MD5 | d87293c9f649de3ed2e95c1c1c1e9674 |
|
BLAKE2b-256 | c150839301b6200e5801845cefb108a4bd088dfaf702efdbe59b066bb72dc37a |
File details
Details for the file aqtinstall-2.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: aqtinstall-2.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 54.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452345c04a488f75ff61070c2faa9741ec0c1252df2664ebc1a31f10565edc1d |
|
MD5 | 33fd0681a109dd79dc17cc1a385bacf1 |
|
BLAKE2b-256 | b842dacb97cbaa19189f9595f056f67de6073b533a47359d4d4bd10ea96be5e0 |