diff --git a/do_cmake.sh b/do_cmake.sh
index 12b59b09c73..d70aff86010 100755
--- a/do_cmake.sh
+++ b/do_cmake.sh
@@ -17,8 +17,10 @@ if [ -r /etc/os-release ]; then
   case "$ID" in
       fedora)
           PYBUILD="3.7"
-          if [ "$VERSION_ID" -ge "32" ] ; then
+          if [ "$VERSION_ID" -eq "32" ] ; then
               PYBUILD="3.8"
+          elif [ "$VERSION_ID" -ge "33" ] ; then
+              PYBUILD="3.9"
           fi
           ;;
       rhel|centos)