File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2121# Update APT packages
2222apt-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.
2728apt-get install -y git
@@ -42,8 +43,10 @@ export PATH=$PATH:$WORKDIR/python_env/bin
4243
4344find ${WORKDIR} /src/ -name setup.py -type f | xargs -I {} dirname {} | grep -v azure-cli-testsdk | xargs pip3 install --no-deps
4445pip3 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
You can’t perform that action at this time.
0 commit comments