Skip to content

Commit f245126

Browse files
committed
Set the minimum macOS version to 13 (#239)
(cherry picked from commit e6800f8)
1 parent 66e18a7 commit f245126

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci-build-release-wheels.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
/pulsar-client-python/pkg/test-wheel.sh
8888
8989
- name: Upload artifacts
90-
uses: actions/upload-artifact@v3
90+
uses: actions/upload-artifact@v4
9191
with:
9292
name: wheel-${{matrix.image.name}}-py${{matrix.python.version}}-${{matrix.cpu.platform}}
9393
path: wheelhouse/*.whl
@@ -115,7 +115,7 @@ jobs:
115115
run: pkg/mac/build-mac-wheels.sh ${{matrix.py.version}} ${{matrix.py.version_long}}
116116

117117
- name: Upload artifacts
118-
uses: actions/upload-artifact@v3
118+
uses: actions/upload-artifact@v4
119119
with:
120120
name: wheel-mac-py${{matrix.py.version}}
121121
path: dist/*.whl
@@ -179,7 +179,7 @@ jobs:
179179
python -c 'import pulsar; c = pulsar.Client("pulsar://localhost:6650"); c.close()'
180180
181181
- name: Upload artifacts
182-
uses: actions/upload-artifact@v3
182+
uses: actions/upload-artifact@v4
183183
with:
184184
name: wheel-windows-py${{matrix.python.version}}
185185
path: dist/*.whl

pkg/mac/build-mac-wheels.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ fi
5252
PYTHON_VERSION=$1
5353
PYTHON_VERSION_LONG=$2
5454

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

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

101102
pushd Python-${PYTHON_VERSION_LONG}
103+
export CFLAGS="-fPIC -O3"
102104
./configure --prefix=$PREFIX --enable-shared --enable-universalsdk --with-universal-archs=universal2 --with-openssl=$PREFIX
103105
make -j16
104106
make install

0 commit comments

Comments
 (0)