Skip to content

Commit beb49a4

Browse files
committed
Only install on Ubuntu
1 parent fbd5cf0 commit beb49a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/release/debian/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ export PATH=$PATH:$WORKDIR/python_env/bin
4343

4444
find ${WORKDIR}/src/ -name setup.py -type f | xargs -I {} dirname {} | grep -v azure-cli-testsdk | xargs pip3 install --no-deps
4545
pip3 install -r ${WORKDIR}/src/azure-cli/requirements.py3.$(uname).txt
46-
# Only install pymsalruntime for debian build, as it does not support other Linux distributions
47-
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.2
49+
fi
4850
$WORKDIR/python_env/bin/python3 ${WORKDIR}/scripts/trim_sdk.py
4951

5052
# Create create directory for debian build

0 commit comments

Comments
 (0)