named-data / python-ndn

An NDN client library with AsyncIO support in Python 3
https://python-ndn.readthedocs.io/en/latest
Apache License 2.0
24 stars 17 forks source link

MacOS: ignore functions marked as arm64 unavailable #63

Closed akamos closed 1 year ago

akamos commented 1 year ago

I've tested the library today on Apple Silicon and couldn't start it at first. I've discovered, that some unavailable symbols were imported. This PR ignores the imports when the platform is arm64. It's inspired by https://github.com/pyglet/pyglet/pull/335

I hope these are all changes needed, as I'm not completely familiar with Objective C bindings in Python. Tests passed all successfully.