mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-15 20:50:42 +00:00
* Imlpement StringNormalizer Add mixed language tests, test case insentive path. * Create a locale on the fly. Default locale does not seem to create well. * Add CI language-pack-en to make default locale available. Catch and translate locale creation exception to make the message meaningful. * Make sure locales are configured on Ubuntu.
60 lines
1.7 KiB
Bash
Executable file
60 lines
1.7 KiB
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
while getopts p: parameter_Option
|
|
do case "${parameter_Option}"
|
|
in
|
|
p) PYTHON_VER=${OPTARG};;
|
|
esac
|
|
done
|
|
|
|
DEBIAN_FRONTEND=noninteractive
|
|
apt-get update && apt-get install -y software-properties-common
|
|
add-apt-repository ppa:deadsnakes/ppa
|
|
apt-get update && apt-get install -y --no-install-recommends \
|
|
autotools-dev \
|
|
build-essential \
|
|
git ca-certificates \
|
|
ca-certificates \
|
|
pkg-config \
|
|
wget \
|
|
zlib1g \
|
|
zlib1g-dev \
|
|
libssl-dev \
|
|
curl \
|
|
autoconf \
|
|
sudo \
|
|
gfortran \
|
|
python3-dev \
|
|
language-pack-en \
|
|
libopenblas-dev \
|
|
liblttng-ust0 \
|
|
libcurl3 \
|
|
libssl1.0.0 \
|
|
libkrb5-3 \
|
|
libicu55 \
|
|
aria2 \
|
|
bzip2 \
|
|
unzip \
|
|
zip \
|
|
rsync libunwind8 libpng16-dev \
|
|
python3-setuptools python3-numpy python3-wheel python python3-pip python3-pytest
|
|
|
|
locale-gen en_US.UTF-8
|
|
update-locale LANG=en_US.UTF-8
|
|
|
|
if [ $PYTHON_VER != "3.5" ]; then
|
|
apt-get install -y --no-install-recommends \
|
|
python${PYTHON_VER} \
|
|
python${PYTHON_VER}-dev
|
|
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VER} 1
|
|
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 2
|
|
update-alternatives --set python3 /usr/bin/python${PYTHON_VER}
|
|
/usr/bin/python${PYTHON_VER} -m pip install --upgrade --force-reinstall numpy
|
|
fi
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
mkdir -p /tmp/azcopy
|
|
aria2c -q -d /tmp/azcopy -o azcopy.tar.gz https://aka.ms/downloadazcopylinux64
|
|
tar -xf /tmp/azcopy/azcopy.tar.gz -C /tmp/azcopy
|
|
/tmp/azcopy/install.sh
|