Skip to content

Commit

Permalink
./build_pyz: only target latest py311 on mac universal2 and win 64-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Jul 18, 2023
1 parent 7597dd5 commit a90c8ea
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions build_pyz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -x

HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

PLATFORMS=(manylinux1_x86_64 macosx_10_6_intel win32 win_amd64)
PYTHON_VERSIONS=(3.7 3.8 3.9)
PLATFORMS=(macosx_11_0_universal2 win_amd64)
PYTHON_VERSIONS=(3.11)
FONTMAKE_VERSION="$(python setup.py --version)"

FONTMAKE_WHEEL="${HERE}/dist/fontmake-${FONTMAKE_VERSION}-py3-none-any.whl"
Expand All @@ -21,18 +21,8 @@ pushd "${OUTPUT_DIR}"

for platform in ${PLATFORMS[*]}; do
for version in ${PYTHON_VERSIONS[*]}; do
if [ "${version}" == "3.8" ]; then
if [ "$platform" == "macosx_10_6_intel" ]; then
# for python 3.8 on macOS we only target >= 10.9 64-bit
platform="macosx_10_9_x86_64"
fi
# python 3.8 removed the 'm' ABI flag
m=""
else
m="m"
fi
v=${version//.}
abi="cp${v}${m}"
abi="cp${v}"
outdir="fontmake-${FONTMAKE_VERSION}-cp${v}-${abi}-${platform}"
mkdir -p "${outdir}"

Expand Down

0 comments on commit a90c8ea

Please sign in to comment.