-
Notifications
You must be signed in to change notification settings - Fork 85
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
Move to meson-python
#433
Conversation
Depends on conda-forge/arrow-cpp-feedstock#1530 |
@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 |
There was a problem hiding this comment.
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'] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
I have no C++ build experience, but looks much simpler than it was before. |
Running into prefix-dev/setup-pixi#139 |
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 usingconda
and Earthly together. We could probably utilisepixi
tasks a bit more, but that is something for a future cleanup.