Add conan to path

Pick-to: 6.1
Change-Id: I90e028409f606a703fd9b567a221f3f946f11d61
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
Toni Saario
2021-03-19 12:47:15 +02:00
parent 3802e21afe
commit 32579bc3c4
8 changed files with 15 additions and 6 deletions

View File

@@ -6,7 +6,15 @@ 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"
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