mirror of https://github.com/qt/qt5.git
Configure pip for internal cache
Task-number: QTQAINFRA-5531 Change-Id: I89c5502f62b2777a06b8f301a9fbaca1a3f8859d Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
This commit is contained in:
parent
50aa0031a4
commit
23116e7331
|
@ -20,6 +20,10 @@ InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
|||
|
||||
InstallPip python2.7
|
||||
|
||||
echo "Configure pip"
|
||||
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip install virtualenv
|
||||
|
||||
SetEnvVar "PATH" "/Library/Frameworks/Python.framework/Versions/2.7/bin/:\$PATH"
|
||||
|
|
|
@ -21,6 +21,10 @@ InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
|||
|
||||
InstallPip python3.9
|
||||
|
||||
echo "Configure pip"
|
||||
/Library/Frameworks/Python.framework/Versions/3.9/bin/pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
/Library/Frameworks/Python.framework/Versions/3.9/bin/pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
/Library/Frameworks/Python.framework/Versions/3.9/bin/pip3 install virtualenv wheel html5lib
|
||||
|
||||
SetEnvVar "PYTHON3_PATH" "/Library/Frameworks/Python.framework/Versions/3.9/bin"
|
||||
|
|
|
@ -69,6 +69,10 @@ Run-Executable "$targetDir\python.exe" "-m ensurepip"
|
|||
Write-Host "Upgrade pip to the latest version available."
|
||||
Run-Executable "$targetDir\python.exe" "-m pip install --upgrade pip"
|
||||
|
||||
Write-Host "Configure pip"
|
||||
Run-Executable "$targetDir\python.exe" "-m pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache"
|
||||
Run-Executable "$targetDir\python.exe" "-m pip config --user set global.extra-index-url https://pypi.org/simple/"
|
||||
|
||||
# Install python virtual env
|
||||
if (IsProxyEnabled) {
|
||||
$proxy = Get-Proxy
|
||||
|
|
|
@ -60,6 +60,9 @@ if (IsProxyEnabled) {
|
|||
Write-Host "Upgrade pip3 to the latest version available."
|
||||
Run-Executable "$install_path\python.exe" "-m pip install --upgrade pip"
|
||||
|
||||
Write-Host "Configure pip"
|
||||
Run-Executable "$install_path\python.exe" "-m pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache"
|
||||
Run-Executable "$install_path\python.exe" "-m pip config --user set global.extra-index-url https://pypi.org/simple/"
|
||||
Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args install virtualenv wheel html5lib"
|
||||
|
||||
# Install PyPDF2 for QSR documentation
|
||||
|
|
|
@ -128,10 +128,13 @@ sudo dnf -y module install nodejs:12
|
|||
# We shouldn't use yum to install virtualenv. The one found from package repo is not
|
||||
# working, but we can use installed pip
|
||||
sudo pip3 install --upgrade pip
|
||||
# Configure pip
|
||||
sudo pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
sudo pip3 install virtualenv wheel
|
||||
|
||||
sudo /usr/bin/pip3 install wheel
|
||||
|
||||
OpenSSLVersion="$(openssl version |cut -b 9-14)"
|
||||
echo "OpenSSL = $OpenSSLVersion" >> ~/versions.txt
|
||||
|
||||
|
|
|
@ -138,6 +138,10 @@ sudo dnf -y module install nodejs:12
|
|||
# We shouldn't use yum to install virtualenv. The one found from package repo is not
|
||||
# working, but we can use installed pip
|
||||
sudo pip3 install --upgrade pip
|
||||
# Configure pip
|
||||
sudo pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
sudo pip3 install virtualenv wheel
|
||||
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
||||
sudo python3.8 -m pip install virtualenv wheel
|
||||
|
|
|
@ -149,6 +149,10 @@ sudo dnf -y module install nodejs:16
|
|||
# We shouldn't use yum to install virtualenv. The one found from package repo is not
|
||||
# working, but we can use installed pip
|
||||
sudo pip3 install --upgrade pip
|
||||
# Configure pip
|
||||
sudo pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
sudo pip3 install virtualenv wheel
|
||||
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
||||
sudo python3.8 -m pip install virtualenv wheel
|
||||
|
|
|
@ -145,6 +145,10 @@ sudo dnf -y module install nodejs:16
|
|||
# We shouldn't use yum to install virtualenv. The one found from package repo is not
|
||||
# working, but we can use installed pip
|
||||
sudo pip3 install --upgrade pip
|
||||
# Configure pip
|
||||
sudo pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
sudo pip3 install virtualenv wheel
|
||||
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
||||
sudo python3.8 -m pip install virtualenv wheel
|
||||
|
|
|
@ -147,6 +147,10 @@ sudo dnf install 'perl(English)' -y
|
|||
# We shouldn't use yum to install virtualenv. The one found from package repo is not
|
||||
# working, but we can use installed pip
|
||||
sudo pip3 install --upgrade pip
|
||||
# Configure pip
|
||||
sudo pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
sudo pip3 install virtualenv wheel
|
||||
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
||||
sudo python -m pip install virtualenv wheel
|
||||
|
|
|
@ -156,6 +156,10 @@ sudo dnf install 'perl(English)' -y
|
|||
# We shouldn't use yum to install virtualenv. The one found from package repo is not
|
||||
# working, but we can use installed pip
|
||||
sudo pip3 install --upgrade pip
|
||||
# Configure pip
|
||||
sudo pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
sudo pip3 install virtualenv wheel
|
||||
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
||||
sudo python -m pip install virtualenv wheel
|
||||
|
|
|
@ -69,6 +69,10 @@ InstallPython "$python3Version" "$python3Sha"
|
|||
|
||||
python3 --version | grep -F "$python3Version"
|
||||
|
||||
# Configure pip
|
||||
pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
pip3 install --user wheel
|
||||
pip3 install --user virtualenv
|
||||
|
||||
|
|
|
@ -169,6 +169,9 @@ echo "Installing packages"
|
|||
waitLoop
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install "${installPackages[@]}"
|
||||
|
||||
# Configure pip
|
||||
pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
OpenSSLVersion="$(openssl version |cut -b 9-14)"
|
||||
echo "OpenSSL = $OpenSSLVersion" >> ~/versions.txt
|
||||
|
||||
|
|
|
@ -218,9 +218,12 @@ echo "Installing packages"
|
|||
waitLoop
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install "${installPackages[@]}"
|
||||
|
||||
# Configure pip
|
||||
pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||
SetEnvVar "PATH" "/usr/lib/nodejs-mozilla/bin:\$PATH"
|
||||
|
||||
OpenSSLVersion="$(openssl version |cut -b 9-14)"
|
||||
echo "OpenSSL = $OpenSSLVersion" >> ~/versions.txt
|
||||
|
||||
|
|
|
@ -229,9 +229,12 @@ echo "Installing packages"
|
|||
waitLoop
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y -o DPkg::Lock::Timeout=300 install "${installPackages[@]}"
|
||||
|
||||
# Configure pip
|
||||
pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||
# SetEnvVar "PATH" "/usr/lib/nodejs-mozilla/bin:\$PATH"
|
||||
|
||||
OpenSSLVersion="$(openssl version |cut -b 9-14)"
|
||||
echo "OpenSSL = $OpenSSLVersion" >> ~/versions.txt
|
||||
|
||||
|
|
|
@ -12,3 +12,6 @@ sudo zypper -nq install python-devel python-xml
|
|||
# install python3
|
||||
sudo zypper -nq install python3-base python3 python3-pip python3-devel python3-virtualenv python3-wheel
|
||||
|
||||
# Configure pip
|
||||
pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
|
|
@ -13,3 +13,6 @@ sudo zypper -nq install python-devel python-xml
|
|||
# install python3
|
||||
sudo zypper -nq install python3-base python3 python3-pip python3-devel python3-virtualenv python3-wheel
|
||||
|
||||
# Configure pip
|
||||
pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||
|
|
Loading…
Reference in New Issue