Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build wheels from source on MacOS. #108

Open
HexDecimal opened this issue Jun 8, 2021 · 0 comments
Open

Can't build wheels from source on MacOS. #108

HexDecimal opened this issue Jun 8, 2021 · 0 comments
Assignees
Labels

Comments

@HexDecimal
Copy link
Collaborator

HexDecimal commented Jun 8, 2021

Wheels built for MacOS require the delocate tool to be run on them. Otherwise SDL will not be bundled with the wheel. Deployments run this tool outside of the normal wheel build process, kind of like how auditwheel works.

This means that while the pre-built MacOS wheels on PyPI are correct, any wheels built from source independently will be missing the SDL library. This will result in the following error when you try to import tcod:

ImportError: dlopen(.../site-packages/tcod/\_libtcod.abi3.so, 2): Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2
  Referenced from: .../site-packages/tcod/\_libtcod.abi3.so
  Reason: image not found

My long term plans are to move the bundled SDL libs to another project and handle the issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant