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

Move to meson-python #433

Merged
merged 125 commits into from
Sep 17, 2024
Merged

Move to meson-python #433

merged 125 commits into from
Sep 17, 2024

Conversation

xhochy
Copy link
Collaborator

@xhochy xhochy commented Aug 26, 2024

Switch the build backend to mesonpy. This should future-proof this package and removes the need for two different build systems.

At the same time we're switching to pixi instead of using conda and Earthly together. We could probably utilise pixi tasks a bit more, but that is something for a future cleanup.

@xhochy
Copy link
Collaborator Author

xhochy commented Sep 2, 2024

Depends on conda-forge/arrow-cpp-feedstock#1530

@xhochy xhochy marked this pull request as ready for review September 3, 2024 07:54
@xhochy
Copy link
Collaborator Author

xhochy commented Sep 3, 2024

@alippai @SimeonStoykovQC If one of you could do a review of this PR, I would highly appreciate it.

#include <turbodbc_numpy/set_numpy_parameters.h>
#include <turbodbc/cursor.h>

// compare http://docs.scipy.org/doc/numpy/reference/c-api.array.html#importing-the-api
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a broken link now

meson.build Outdated
# Don't use the deprecated NumPy C API. Define this to a fixed version instead of
# NPY_API_VERSION in order not to break compilation for released SciPy versions
# when NumPy introduces a new deprecation.
numpy_nodepr_api = ['-DNPY_NO_DEPRECATED_API=NPY_1_9_API_VERSION']
Copy link
Contributor

Choose a reason for hiding this comment

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

I see this is copied from SciPy, but I wonder why NPY_1_9_API_VERSION (or NPY_1_7_API_VERSION) and not the minimum numpy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll adjust that 👍

pixi.toml Outdated
numpy = ">=1.21,<3"
cmake = ">=3.30.2,<3.31"
libboost-devel = ">=1.86.0,<1.87"
simdutf = ">=5.4.15,<5.5"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this matches the conda feedstock meta.yaml

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll expand this a bit.

@alippai
Copy link
Contributor

alippai commented Sep 12, 2024

I have no C++ build experience, but looks much simpler than it was before.

@xhochy
Copy link
Collaborator Author

xhochy commented Sep 17, 2024

Running into prefix-dev/setup-pixi#139

@xhochy xhochy merged commit 57fefe9 into master Sep 17, 2024
30 checks passed
@xhochy xhochy deleted the meson branch September 17, 2024 12:04
@xhochy xhochy mentioned this pull request Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants