mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 11:26:04 +08:00
Install python3 on all platforms
This forward-ports commita99d3432f7to 5.9, which should have been done in6bf5691ca8but accidentally left out. It reuses parts of commita5f3f8ed48that was initially cherry-picked to 5.6. Task-number: QTAUTO-345 Task-number: QTBUG-63133 Change-Id: Ib401dd06bfc4d4aaf8b8ce1a8509697993d4397e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
committed by
Liang Qi
parent
b6e6882bb7
commit
528580bbcd
@@ -1,5 +1,18 @@
|
||||
# provides: python development libraries
|
||||
# version: provided by default Linux distribution repository
|
||||
# needed to build pyside
|
||||
sudo subscription-manager refresh
|
||||
sudo yum install -y python-devel python-virtualenv
|
||||
|
||||
# install the EPEL repository which provides python3
|
||||
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||
sudo rpm -Uvh epel-release-latest-7.noarch.rpm
|
||||
sudo rm -f epel-release-latest-7.noarch.rpm
|
||||
|
||||
# install python3
|
||||
sudo yum install -y python34-devel
|
||||
|
||||
# install pip3
|
||||
wget https://bootstrap.pypa.io/get-pip.py
|
||||
sudo python3 get-pip.py
|
||||
sudo rm -f get-pip.py
|
||||
sudo pip3 install virtualenv
|
||||
|
||||
@@ -82,6 +82,8 @@ try
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev || throw $ExceptionAPT
|
||||
# Support for cross-building to x86 (needed by WebEngine boot2qt builds)
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install g++-multilib || throw $ExceptionAPT
|
||||
# python3 development package
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install python3-dev python3-pip python3-virtualenv || throw $ExceptionAPT
|
||||
)
|
||||
catch || {
|
||||
case $ex_code in
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# provides: python development libraries
|
||||
# version: provided by default Linux distribution repository
|
||||
# needed to build pyside
|
||||
sudo pkcon -y refresh
|
||||
sudo pkcon -y install python-devel python-virtualenv
|
||||
|
||||
# install python3
|
||||
sudo pkcon -y install python3 python3-pip python3-virtualenv
|
||||
1
coin/provisioning/qtci-macos-10.12-x86_64/025-python3.sh
Normal file
1
coin/provisioning/qtci-macos-10.12-x86_64/025-python3.sh
Normal file
@@ -0,0 +1 @@
|
||||
source "${BASH_SOURCE%/*}/../common/python3.sh"
|
||||
Reference in New Issue
Block a user