Skip to content

Commit

Permalink
Set the minimum macOS version to 13 (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower authored Jan 24, 2025
1 parent 687e1b7 commit e6800f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-build-release-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
/pulsar-client-python/pkg/test-wheel.sh
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheel-${{matrix.image.name}}-py${{matrix.python.version}}-${{matrix.cpu.platform}}
path: wheelhouse/*.whl
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
run: pkg/mac/build-mac-wheels.sh ${{matrix.py.version}} ${{matrix.py.version_long}}

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheel-mac-py${{matrix.py.version}}
path: dist/*.whl
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
python -c 'import pulsar; c = pulsar.Client("pulsar://localhost:6650"); c.close()'
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheel-windows-py${{matrix.python.version}}
path: dist/*.whl
4 changes: 3 additions & 1 deletion pkg/mac/build-mac-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ fi
PYTHON_VERSION=$1
PYTHON_VERSION_LONG=$2

MACOSX_DEPLOYMENT_TARGET=13
# When building Python from source, it will read this environment variable to determine the minimum supported macOS version
export MACOSX_DEPLOYMENT_TARGET=13
pushd $CACHE_DIR

# We need to build OpenSSL from source to have universal2 binaries
Expand Down Expand Up @@ -99,6 +100,7 @@ if [ ! -f Python-${PYTHON_VERSION_LONG}/.done ]; then
tar xfz Python-${PYTHON_VERSION_LONG}.tgz

pushd Python-${PYTHON_VERSION_LONG}
export CFLAGS="-fPIC -O3"
./configure --prefix=$PREFIX --enable-shared --enable-universalsdk --with-universal-archs=universal2 --with-openssl=$PREFIX
make -j16
make install
Expand Down

0 comments on commit e6800f8

Please sign in to comment.