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

Use oldest-supported-numpy for building #57

Merged
merged 2 commits into from
Sep 18, 2022

Conversation

ardiloot
Copy link
Contributor

Noticed a problem that Eigency currently uses latest NumPy for building, however, it should use oldest supported NumPy version. Noticed it while debugging segmentation fault in a project using Eigency, it turned out that Eigency is built against latest NumPy from pip (right now 1.23.3), however, if system/venv has older NumPy, it can lead to crash due to ABI incompatibility (system/venv Numpy version must be always the same or greater than NumPy used for building).

More detailed and clearer explanation is at NumPy webpage:
https://numpy.org/doc/stable/user/depending_on_numpy.html#adding-a-dependency-on-numpy

This pull request changes the behavior to use oldest-supported-numpy as suggested by NumPy documentation.

@BTOdell
Copy link
Collaborator

BTOdell commented Sep 18, 2022

Thanks for your contribution! Can you update your fork with my recent bugfix to the master branch that fixes the failing pre-commit check? I'm not sure why GitHub isn't automatically re-running the checks against the merged result of this PR.

@BTOdell BTOdell added the bug label Sep 18, 2022
@BTOdell BTOdell self-assigned this Sep 18, 2022
@ardiloot
Copy link
Contributor Author

Sure, updated branch with your fix. Thanks for looking into it!

@BTOdell BTOdell merged commit 1892b93 into wouterboomsma:master Sep 18, 2022
@BTOdell
Copy link
Collaborator

BTOdell commented Sep 18, 2022

I'll release a new version on PyPi later today.
EDIT: Done! https://pypi.org/project/eigency/2.0.0/

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

Successfully merging this pull request may close these issues.

None yet

2 participants