]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: zipapp module requires Python35 or later
authorMichael Fritch <mfritch@suse.com>
Thu, 18 Nov 2021 22:08:45 +0000 (15:08 -0700)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 13 Sep 2022 16:17:20 +0000 (12:17 -0400)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/build.sh

index 94e8a3247c99bd98ecb604986b5c2804aef0baee..abf3290c607929fe970a73bc12217d140049fe25 100755 (executable)
@@ -31,8 +31,11 @@ if [[ "$version" =~ ^Python[[:space:]]([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:
 
     compress=""
     if [[ "$major" -ge 3 && "$minor" -ge 7 ]]; then
-        echo "Pyton version compatible with --compress, compressing cephadm binary"
+        echo "Python version compatible with --compress, compressing cephadm binary"
         compress="--compress"
+    elif [[ "$major" -lt 3 || "$major" -eq 3 && "$minor" -lt 5 ]]; then
+       echo "zipapp module requires Python35 or greater"
+       exit 1
     fi
 
     $PYTHON -mzipapp -p $PYTHON ${builddir} ${compress} --output $target_fpath