mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-20 03:46:44 +08:00
Previously pip was used (instead of pip3) which caused that python2 packages were installed into the python3 wheel cache folder. Some of the packages also worked for python3, but not all of them. Task-number: AUTOSUITE-195 Change-Id: I393d036667b14e11dee65975ba6933e7174d0e9d Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
19 lines
646 B
Bash
Executable File
19 lines
646 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# provides: python development libraries
|
|
# version: provided by default Linux distribution repository
|
|
# needed to build pyside
|
|
|
|
set -ex
|
|
|
|
sudo pkcon -y refresh
|
|
sudo pkcon -y install python-devel python-virtualenv
|
|
|
|
# install python3
|
|
sudo pkcon -y install libpython3_4m1_0 python3-base python3 python3-pip python3-devel python3-virtualenv python3-wheel
|
|
|
|
# Install all needed packages in a special wheel cache directory
|
|
pip3 wheel --wheel-dir $HOME/python3-wheels -r ${BASH_SOURCE%/*}/../common/shared/requirements.txt
|
|
|
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
|
SetEnvVar "PYTHON3_WHEEL_CACHE" "$HOME/python3-wheels"
|