@@ -9,6 +9,9 @@ function get_distutils_platform {
99 # Report platform as in form of distutils get_platform.
1010 # This is like the platform tag that pip will use.
1111 # Modify fat architecture tags on macOS to reflect compiled architecture
12+
13+ # Deprecate this function once get_distutils_platform_ex is used in all
14+ # downstream projects
1215 local plat=$1
1316 case $plat in
1417 i686|x86_64|intel|aarch64|s390x|ppc64le) ;;
@@ -35,7 +38,7 @@ function get_distutils_platform_ex {
3538 # Modify fat architecture tags on macOS to reflect compiled architecture
3639 # For non-darwin, report manylinux version
3740 local plat=$1
38- local MB_ML_VER =${MB_ML_VER:- 1}
41+ local mb_ml_ver =${MB_ML_VER:- 1}
3942 case $plat in
4043 i686|x86_64|intel|aarch64|s390x|ppc64le) ;;
4144 * ) echo Did not recognize plat $plat ; return 1 ;;
@@ -46,7 +49,7 @@ function get_distutils_platform_ex {
4649 echo plat=intel not allowed for Manylinux
4750 return 1
4851 fi
49- echo " manylinux${MB_ML_VER } _${plat} "
52+ echo " manylinux${mb_ml_ver } _${plat} "
5053 return
5154 fi
5255 # macOS 32-bit arch is i386
@@ -74,7 +77,7 @@ function get_gf_lib_for_suf {
7477 local plat=${3:- $PLAT }
7578 local uname=${4:- $(uname)}
7679 if [ -z " $prefix " ]; then echo Prefix not defined; exit 1; fi
77- local plat_tag=$( get_distutils_platform $plat $uname )
80+ local plat_tag=$( get_distutils_platform_ex $plat $uname )
7881 if [ -n " $suffix " ]; then suffix=" -$suffix " ; fi
7982 local fname=" $prefix -${plat_tag}${suffix} .tar.gz"
8083 local out_fname=" ${ARCHIVE_SDIR} /$fname "
0 commit comments