diff --git a/deploy/build_env/centos/build.sh b/deploy/build_env/centos/build.sh
index 4b0cb05beeddcbb91e2cc5829923164b4154cfab..b48e489cf41f2d0e68855a52e25fe36a25d5bb6d 100755
--- a/deploy/build_env/centos/build.sh
+++ b/deploy/build_env/centos/build.sh
@@ -16,7 +16,7 @@ cmake \
 make -j 4
 make package
 
-if [ $OS == "centos7.9.2009" ]; then
+if [ $OS == "el7" ]; then
   BUILD_PYTHON2_PACKAGES=ON
 else
   BUILD_PYTHON2_PACKAGES=OFF