[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
|
||||
|
||||
$RETRY sudo apt-get -qq install libboost-dev libpcre3-dev
|
||||
# testflags.py needs python
|
||||
$RETRY sudo apt-get install -qq python
|
||||
|
||||
WITHLANG=$SWIGLANG
|
||||
|
||||
|
|
@ -80,15 +82,14 @@ case "$SWIGLANG" in
|
|||
;;
|
||||
"python")
|
||||
pip install --user pycodestyle
|
||||
if [[ "$PY3" ]]; then
|
||||
$RETRY sudo apt-get install -qq python3-dev
|
||||
fi
|
||||
WITHLANG=$SWIGLANG$PY3
|
||||
if [[ "$VER" ]]; then
|
||||
$RETRY sudo add-apt-repository -y ppa:deadsnakes/ppa
|
||||
$RETRY sudo apt-get -qq update
|
||||
$RETRY sudo apt-get -qq install python${VER}-dev
|
||||
WITHLANG=$SWIGLANG$PY3=$SWIGLANG$VER
|
||||
else
|
||||
$RETRY sudo apt-get install -qq python${PY3}-dev
|
||||
WITHLANG=$SWIGLANG$PY3
|
||||
fi
|
||||
;;
|
||||
"r")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue