Skip to content

Commit b4e5ab7

Browse files
committed
Only install on Ubuntu
1 parent bed3ea0 commit b4e5ab7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/release/debian/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2121
# Update APT packages
2222
apt-get update
2323
# uuid-dev is used to build _uuid module: https://github.com/python/cpython/pull/3796
24-
apt-get install -y libssl-dev libffi-dev python3-dev zlib1g-dev uuid-dev wget debhelper
24+
# lsb-release is used to determine whether install pymsalruntime
25+
apt-get install -y libssl-dev libffi-dev python3-dev zlib1g-dev uuid-dev wget debhelper lsb-release
2526
# Git is not strictly necessary, but it would allow building an experimental package
2627
# with dependency which is currently only available in its git repo feature branch.
2728
apt-get install -y git
@@ -42,8 +43,10 @@ export PATH=$PATH:$WORKDIR/python_env/bin
4243

4344
find ${WORKDIR}/src/ -name setup.py -type f | xargs -I {} dirname {} | grep -v azure-cli-testsdk | xargs pip3 install --no-deps
4445
pip3 install -r ${WORKDIR}/src/azure-cli/requirements.py3.$(uname).txt
45-
# Only install pymsalruntime for debian build, as it does not support other Linux distributions
46-
pip install pymsalruntime==0.18.1 || true
46+
# Only install pymsalruntime for Ubuntu, as it does not fully support other Linux distributions
47+
if [[ "$(lsb_release --id --short)" == "Ubuntu" && "$(dpkg --print-architecture)" == "amd64" ]]; then
48+
pip3 install pymsalruntime==0.20.0
49+
fi
4750
$WORKDIR/python_env/bin/python3 ${WORKDIR}/scripts/trim_sdk.py
4851

4952
# Create create directory for debian build

0 commit comments

Comments
 (0)