[CI] change python install
This commit is contained in:
parent
901f399f8c
commit
333e2daa13
1 changed files with 5 additions and 4 deletions
|
|
@ -10,6 +10,8 @@ if [[ -n "$GCC" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$RETRY sudo apt-get -qq install libboost-dev libpcre3-dev
|
$RETRY sudo apt-get -qq install libboost-dev libpcre3-dev
|
||||||
|
# testflags.py needs python
|
||||||
|
$RETRY sudo apt-get install -qq python
|
||||||
|
|
||||||
WITHLANG=$SWIGLANG
|
WITHLANG=$SWIGLANG
|
||||||
|
|
||||||
|
|
@ -80,15 +82,14 @@ case "$SWIGLANG" in
|
||||||
;;
|
;;
|
||||||
"python")
|
"python")
|
||||||
pip install --user pycodestyle
|
pip install --user pycodestyle
|
||||||
if [[ "$PY3" ]]; then
|
|
||||||
$RETRY sudo apt-get install -qq python3-dev
|
|
||||||
fi
|
|
||||||
WITHLANG=$SWIGLANG$PY3
|
|
||||||
if [[ "$VER" ]]; then
|
if [[ "$VER" ]]; then
|
||||||
$RETRY sudo add-apt-repository -y ppa:deadsnakes/ppa
|
$RETRY sudo add-apt-repository -y ppa:deadsnakes/ppa
|
||||||
$RETRY sudo apt-get -qq update
|
$RETRY sudo apt-get -qq update
|
||||||
$RETRY sudo apt-get -qq install python${VER}-dev
|
$RETRY sudo apt-get -qq install python${VER}-dev
|
||||||
WITHLANG=$SWIGLANG$PY3=$SWIGLANG$VER
|
WITHLANG=$SWIGLANG$PY3=$SWIGLANG$VER
|
||||||
|
else
|
||||||
|
$RETRY sudo apt-get install -qq python${PY3}-dev
|
||||||
|
WITHLANG=$SWIGLANG$PY3
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"r")
|
"r")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue