Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
auto select python2 for Ubuntu20.04 (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinxia authored Aug 31, 2021
1 parent 3308188 commit f1e4292
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/installCommonDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ install_webrtc(){

rm $ROOT/third_party/webrtc -rf
mkdir $ROOT/third_party/webrtc

if [[ "$OS" =~ .*ubuntu.* ]] && [[ "$OS_VERSION" =~ 20.04.* ]]; then
${SUDO} update-alternatives --install /usr/bin/python python /usr/bin/python2 1
fi

pushd ${ROOT}/third_party/webrtc
git clone -b 59-server https://github.com/open-webrtc-toolkit/owt-deps-webrtc.git src
Expand All @@ -273,6 +277,10 @@ install_webrtc(){
popd

install_webrtc79

if [[ "$OS" =~ .*ubuntu.* ]] && [[ "$OS_VERSION" =~ 20.04.* ]]; then
${SUDO} update-alternatives --remove python /usr/bin/python2
fi
}

install_licode(){
Expand Down

0 comments on commit f1e4292

Please sign in to comment.