Skip to content

Fix PyAssimp under Python >= 3.12 and macOS library search support - #5397

Merged
kimkulling merged 9 commits into
assimp:masterfrom
Emily-TTG:master
Feb 8, 2024
Merged

kimkulling merged 9 commits into
assimp:masterfrom
Emily-TTG:master

Conversation

@Emily-TTG

Copy link
Copy Markdown
Contributor

Python 3.12 removed the distutils module (https://docs.python.org/3.10/library/distutils.html) which was being used to check for Anaconda library paths - conditionally disabling this code depending on the Python version is a quick-fix, though modern Python has cleverer package resolution techniques which we could use in the future.

This ties into the fact that PyAssimp failed to search the macOS DYLD_LIBRARY_PATH (which acts similarly to LD_LIBRARY_PATH) when looking for Assimp.

Hopefully these tide over PyAssimp until a better library resolution mechanism can be worked out.

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine for me. Thanks for your help.

@kimkulling kimkulling added the pyassimp The Python Assimp port label Dec 31, 2023
@Emily-TTG

Copy link
Copy Markdown
Contributor Author

Sorry if I'm misunderstanding the contribution process somehow but is there something else I should be doing before this is merged? I check in and merge master occasionally to keep the CI checks happy but not sure otherwise.

@kimkulling
kimkulling merged commit ff5b0ae into assimp:master Feb 8, 2024
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

kimkulling added a commit that referenced this pull request Jul 1, 2026
…5397)

* Fix PyAssimp under Python >= 3.12

* Make PyAssimp search DYLD_LIBRARY_PATH under macOS

---------

Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pyassimp The Python Assimp port

Projects

Development

Successfully merging this pull request may close these issues.

2 participants