Files
qt5/coin/provisioning/common/unix/install-conan.sh
Lucie Gérard ae21de72f3 Add license header to provisioning scripts missing one
Task-number: QTBUG-108364
Pick-to: 6.5 6.6
Change-Id: I5b1d53aad917ed38f9e26e1fcc1b97b921c0603a
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2023-08-31 16:25:43 +02:00

24 lines
691 B
Bash
Executable File

#!/usr/bin/env bash
#Copyright (C) 2023 The Qt Company Ltd
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# shellcheck source=../unix/SetEnvVar.sh
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
# This script will install Conan
# Note! Python3 is required for Conan installation
os="$1"
# Install Conan to Python user install directory (typically ~./local/)
pip3 install conan --user
SetEnvVar "CONAN_REVISIONS_ENABLED" "1"
SetEnvVar "CONAN_V2_MODE" "1"
if [ "$os" == "linux" ]; then
SetEnvVar "PATH" "/home/qt/.local/bin:\$PATH"
elif [ "$os" == "macos" ]; then
SetEnvVar "PATH" "/Users/qt/Library/Python/3.7/bin:\$PATH"
fi