Skip to content

Commit 973c4c6

Browse files
committed
fix
1 parent 3b8185c commit 973c4c6

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ vcpkg_installed/
2222
lib_pulsar.so
2323
tests/test.log
2424
.tests-container-id.txt
25-
include/
26-
lib/
25+

pkg/mac/build-mac-wheels.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ cd "${ROOT_DIR}"
3030

3131
source build-support/dep-url.sh
3232

33-
if [ ! -f lib/libpulsarwithdeps.a ]; then
33+
CACHE_DIR=$ROOT_DIR/.pulsar-mac-build
34+
PREFIX=${CACHE_DIR}/install
35+
mkdir -p $PREFIX
36+
37+
mkdir -p $PREFIX/lib/
38+
if [ ! -f $PREFIX/lib/libpulsarwithdeps.a ]; then
3439
VERSION=$(cat ./dependencies.yaml | grep pulsar-cpp | awk '{print $2}')
3540
curl -O -L $(pulsar_cpp_base_url $VERSION)/macos-arm64.zip
3641
curl -O -L $(pulsar_cpp_base_url $VERSION)/macos-x86_64.zip
@@ -39,20 +44,15 @@ if [ ! -f lib/libpulsarwithdeps.a ]; then
3944
unzip -q macos-x86_64.zip -d x86_64
4045
libtool -static -o libpulsarwithdeps.a arm64/lib/libpulsarwithdeps.a x86_64/lib/libpulsarwithdeps.a
4146

42-
rm -rf include/ lib/
43-
mkdir -p include/ lib/
44-
mv arm64/include/* include/
45-
mv libpulsarwithdeps.a lib/
47+
mv arm64/include/ $PREFIX/
48+
mv libpulsarwithdeps.a $PREFIX/lib/
4649
rm -rf arm64/ x86_64/ macos-arm64.zip macos-x86_64.zip
4750
fi
4851

4952
PYTHON_VERSION=$1
5053
PYTHON_VERSION_LONG=$2
5154

5255
MACOSX_DEPLOYMENT_TARGET=13
53-
CACHE_DIR=$ROOT_DIR/.pulsar-mac-build
54-
mkdir -p $CACHE_DIR
55-
PREFIX=${CACHE_DIR}/install
5656
pushd $CACHE_DIR
5757

5858
# We need to build OpenSSL from source to have universal2 binaries

0 commit comments

Comments
 (0)