Fix Ubuntu package installation

This commit is contained in:
vishesh92 2026-05-21 14:35:28 +05:30
parent 1fe486f493
commit 8e3bbe2d56
No known key found for this signature in database
GPG Key ID: 4E395186CBFA790B
1 changed files with 4 additions and 4 deletions

View File

@ -21,12 +21,12 @@ set -e
CLOUDUTILS_DIR="/usr/share/pyshared/"
DIST_DIR=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
if which pycompile >/dev/null 2>&1; then
pycompile -p cloudstack-common
if which py3compile >/dev/null 2>&1; then
py3compile -p cloudstack-common
fi
if which pycompile >/dev/null 2>&1; then
pycompile -p cloudstack-common /usr/share/cloudstack-common
if which py3compile >/dev/null 2>&1; then
py3compile -p cloudstack-common /usr/share/cloudstack-common
fi
cp $CLOUDUTILS_DIR/cloud_utils.py $DIST_DIR