Skip to content

Commit 6527e9d

Browse files
authored
Do not include libsasl2 and its dependencies in the resulting wheels
1 parent 74d83f9 commit 6527e9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/wheels/build-wheels.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ case $OSTYPE in
3535
# Need to set up env vars (in docker) so that cibuildwheel finds librdkafka.
3636
lib_dir=dest/runtimes/linux-$ARCH/native
3737
export CIBW_ENVIRONMENT="CFLAGS=-I\$PWD/dest/build/native/include LDFLAGS=-L\$PWD/$lib_dir LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$PWD/$lib_dir"
38+
# Do not include libsasl2 and its dependencies in the resulting wheel.
39+
export CIBW_REPAIR_WHEEL_COMMAND="auditwheel repair --exclude 'libsasl2.so*' -w {dest_dir} {wheel}"
3840
;;
3941
darwin*)
4042
os=macos

0 commit comments

Comments
 (0)