Skip to content

Commit 1d272d7

Browse files
setup.py: avoid swig director problem on macos with python<3.13.
1 parent 30eb43f commit 1d272d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,9 @@ def platform_release_tuple():
14431443
print(f'OpenBSD: pip install of swig does not build; assuming `pkg_add swig`.')
14441444
elif PYMUPDF_SETUP_SWIG:
14451445
pass
1446+
elif darwin and python_version_tuple < (3, 13):
1447+
# Latest swig-4.4.1 gives director errors on macos with python<3.13.
1448+
ret.append('swig==4.3.1')
14461449
else:
14471450
ret.append('swig')
14481451
return ret

0 commit comments

Comments
 (0)