|
@@ -254,7 +254,7 @@ export PKG_CONFIG_PATH
|
|
|
buildEssentialLib() {
|
|
|
sudo apt-get install -y build-essential autoconf m4 libtool curl -y
|
|
|
echo "building Essential Lib"
|
|
|
- echo "======================= $useGitLib"
|
|
|
+ echo "======================="
|
|
|
if [ "$useGitLib" -eq 1 ]; then
|
|
|
echo "--- pull gogs lib --- "
|
|
|
download "http://192.168.0.115:3000/zhangyupeng/4dage-ffmpeg/raw/master/packages.tar.gz" "packages.tar.gz"
|
|
@@ -767,17 +767,23 @@ if ! command_exists "git"; then
|
|
|
fi
|
|
|
|
|
|
if [ ! -d "$WORKSPACE/speech-denoiser" ]; then
|
|
|
- git clone https://github.com/lucianodato/speech-denoiser.git "$WORKSPACE/speech-denoiser"
|
|
|
+ if [ "$useGitLib" -eq 1 ]; then
|
|
|
+ git clone http://192.168.0.115:3000/zhangyupeng/speech-denoiser.git "$WORKSPACE/speech-denoiser"
|
|
|
+ else
|
|
|
+ git clone https://github.com/lucianodato/speech-denoiser.git "$WORKSPACE/speech-denoiser"
|
|
|
+ fi
|
|
|
fi
|
|
|
-
|
|
|
cd "$WORKSPACE/speech-denoiser"
|
|
|
if command_exists "python3"; then
|
|
|
pyv="$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:3])))' 2>&1)"
|
|
|
laverison="3.5.2"
|
|
|
echo "$pyv"
|
|
|
+ echo "detect your system python3 verison: is $pyv"
|
|
|
+ echo "======================="
|
|
|
comparse=$(awk 'BEGIN{ print "'$pyv'"<="'$laverison'" }')
|
|
|
if [ "$comparse" -eq 1 ]; then
|
|
|
- echo "install system python3.7"
|
|
|
+ echo "system need install system python3.7"
|
|
|
+ echo "======================="
|
|
|
sudo apt-get remove python3.4 -y
|
|
|
sudo apt-get install software-properties-common python-software-properties -y
|
|
|
sudo add-apt-repository ppa:deadsnakes/ppa -y
|
|
@@ -785,7 +791,8 @@ if command_exists "python3"; then
|
|
|
sudo apt-get install python3-pip python3.7 -y
|
|
|
sudo apt-get install python3.7-gdbm -y
|
|
|
else
|
|
|
- echo "python3:$pyv,only need install meson ninja "
|
|
|
+ echo "system python3 $pyv,only need install meson ninja"
|
|
|
+ echo "======================="
|
|
|
sudo apt-get install python3-pip -y
|
|
|
sudo pip3 install meson ninja
|
|
|
fi
|