Skip to main content

CuteCI is a simple tool allowing you to install Qt with desired packages in headless mode.

Project description

CuteCI

Build Status

CuteCI is a simple tool allowing you to install Qt with desired packages in headless mode. Qt installers are using Qt Installer Framework which provides scripting ability, CuteCI takes advantage of this.

Requirements

  • Python3 pip3
  • cuteci is in Python but has only been tested on Ubuntu (+docker).
  • cuteci has been tested with Qt installer 5.9.7 5.10.1 5.11.3 5.12.2.

Installation

pip3 install cuteci

Principle

cuteci does few things:

  • Download Qt installer if you pass an url
  • Make installer executable
  • Install Qt with desired packages in the directory you choose

cuteci can also only lists packages available in the installer.

Usage

Common options:

  • --installer (required): path or url to Qt installer. If url, choose an official one from download.qt.io/official_releases/qt/, this is because md5sums.txt is retrieved implicitely from it.
  • --ui: if set, Qt installer UI is shown (useful for debugging).
  • --rm: if set, Qt installer is removed at the end.

List packages

cuteci \
    --installer <path or official url> \
    [--ui] [--rm] \
    list

Will output:

===LIST OF PACKAGES===
qt    Qt
qt.qt5.5122    Qt 5.12.2
qt.tools    Developer and Designer Tools
qt.installer.changelog    Qt Installer Changelog
qt.license.lgpl    Qt License LGPL
qt.license.thirdparty    Qt 3rd Party Licenses
qt.license.python    Python Software Foundation License Version 2
qt.license.gplv3except    License GPL3-EXCEPT
qt.qt5.5122.gcc_64    Desktop gcc 64-bit
qt.qt5.5122.android_x86    Android x86
qt.qt5.5122.android_arm64_v8a    Android ARM64-v8a
qt.qt5.5122.android_armv7    Android ARMv7
...
===END OF PACKAGES===

Install

cuteci \
    --installer <path or official url> \
    [--ui] [--rm] \
    install \
    --destdir /opt/Qt \
    --packages qt.qt5.5122.gcc_64,qt.qt5.5122.android_x86 \
    [--verbose] [--keep-tools]

Notes

  • destdir should not contain a previous Qt installation (unless it has been installed with cuteci), otherwise installer will complain and script does not handle it.
  • If --keep-tools is set, QtCreator, Maintenance Tools, samples and doc will be kept, but you will not be able to install another version of Qt in destdir.

Docker integration

Here is the sample of a minimalist Dockerfile using cuteci to install Qt 5.12.2:

FROM ubuntu:18.04

RUN apt-get update && apt-get install -y --no-install-recommends \
    libdbus-1-3 \
    xvfb \
    libfontconfig \
    python3 \
    python3-pip

RUN pip3 install cuteci && \
    cuteci \
        --rm \
        --installer http://download.qt.io/official_releases/qt/5.12/5.12.2/qt-opensource-linux-x64-5.12.2.run \
        install \
        --destdir /opt/Qt \
        --packages qt.qt5.5122.gcc_64

ENTRYPOINT ["/bin/bash"]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cuteci-1.2.1.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file cuteci-1.2.1.tar.gz.

File metadata

  • Download URL: cuteci-1.2.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.12

File hashes

Hashes for cuteci-1.2.1.tar.gz
Algorithm Hash digest
SHA256 3cfd32ee4510de37658190329d224ca17099f16ffed6d9014cb2c4e01639fc22
MD5 3492f2254cded9776b0724097ac7f5e6
BLAKE2b-256 d5effab8dfe7e89f423e39ae6892de919e1d480c6948e6aac254126214290651

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page