-
Notifications
You must be signed in to change notification settings - Fork 53
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
BUILD: Switch to Meson for building #117
Conversation
Seems that the tests are failing because pip still installs |
With "-dirty" as version suffix, pip fails the wheels installation with the following errors: - pip 22.3.1 `WARNING: Built wheel for matscipy is invalid: matscipy-0.8.0.rc1.dev89+gb96ca41-dirty-cp310-cp310-linux_x86_64.whl is not a valid wheel filename.` - pip 22.2.2 `WARNING: Built wheel for matscipy is invalid: matscipy has an invalid wheel, matscipy has an invalid wheel, multiple .dist-info directories found: matscipy-0.8.0.rc1.dev90+g0ebd368.dist-info, matscipy-0.8.0.rc1.dev90+g0ebd368-dirty.dist-info` The wheels naming convention allows for a numeric build tag, so "-dirty" does not work. With ".dirty" it becomes part of the version spec.
ImportError is too generic for trying to import ._matscipy, DLL problems can be overlooked.
I've added a simple check to cibuildwheel that makes sure both the package and the compiled extension can be imported. Looks like it's working for every wheel, and I've separately tested the windows wheels on bare metal. If the macos wheels work the PR can probably be merged. |
thank you @prs513rosewood! Last time I checked there was still an issue with the Mac arm64 wheel, I'll test that again now. |
MacOS X arm64 wheel still doesn't install. The |
Thanks, good idea - but unfortunately this won't work for arm64 since they are cross-compiled on x86_64 (until GitHub get Apple Silicon runners which I did hear about somewhere as a future) plan. Another reason to work on arm64 in a new PR. |
I created #122 which is a copy of this PR and then removed the arm64 wheels from this one. If all CI Actions pass then this one should be OK to merge. |
The cibuildwheel test actually runs only for wheels built by cibuildwheel. I'm ok with pushing the arm builds to a separate PR, but before merging I'll make a quick change: Numpy recommands using |
I agree with using oldest-supported-numpy - we also do it with f90wrap and quippy wheels (and I thought I'd done it here too but must have got lost in all the edits in this branch) |
Switched the build system from setuptools to Meson. Added
pyproject.toml
. Removedsetup.py
.