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 meson-build and pyproject.toml #22

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Use meson-build and pyproject.toml #22

wants to merge 14 commits into from

Conversation

nennigb
Copy link
Owner

@nennigb nennigb commented Nov 28, 2024

This PR fix the problem describes in #16.

Meson can be used to build and install the package. The approach is mainly based on
https://numpy.org/doc/stable/f2py/buildtools/meson.html

To create the so file:

rm -rf builddir
meson setup builddir
meson compile -C builddir

To install just pip install .

Works in editable mode as well:

python -m pip install --no-build-isolation --editable .

In this case, compatible version of meson, meson-python and ninja should be installed before (see https://github.com/mesonbuild/meson-python/blob/main/pyproject.toml).

@nennigb nennigb force-pushed the meson-build branch 2 times, most recently from 29677a9 to 01b2565 Compare November 28, 2024 16:01
@nennigb nennigb added build Building problems packaging labels Feb 25, 2025
@nennigb nennigb linked an issue Feb 25, 2025 that may be closed by this pull request
@nennigb nennigb force-pushed the meson-build branch 2 times, most recently from e76ae8c to 0eb5d1a Compare February 26, 2025 08:29
@nennigb nennigb marked this pull request as ready for review February 26, 2025 08:35
@nennigb nennigb self-assigned this Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Building problems packaging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

numpy.distutils has been deprecated and will be removed in 2025.
1 participant