summaryrefslogtreecommitdiffstats
path: root/jjb/scripts/publish_library_py.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/scripts/publish_library_py.sh')
-rw-r--r--jjb/scripts/publish_library_py.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/jjb/scripts/publish_library_py.sh b/jjb/scripts/publish_library_py.sh
index 1cbeb23c0..db60c1dbe 100644
--- a/jjb/scripts/publish_library_py.sh
+++ b/jjb/scripts/publish_library_py.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright (c) 2021 Cisco and/or its affiliates.
+# Copyright (c) 2024 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
@@ -19,7 +19,13 @@ set -exuo pipefail
PYTHON_SCRIPT="/w/workspace/publish_library.py"
-pip3 install boto3
+OS_CODENAME="$(grep 'VERSION_CODENAME=' /etc/os-release | cut -d= -f2)"
+pip_options=""
+if [ "$OS_CODENAME" = "noble" ] ; then
+ pip_options=" --break-system-packages"
+fi
+# shellcheck disable=SC2086
+pip3 install$pip_options boto3
mkdir -p $(dirname "$PYTHON_SCRIPT")
cat >$PYTHON_SCRIPT <<'END_OF_PYTHON_SCRIPT'