[Numpy-discussion] Re: Meson - C extension - Finding numpy includes in virtual env

2023-11-26 Thread Doug Turnbull
ild isolation uses a different path / environment to gather dependencies (such as numpy). Not my virtualenv. Thanks for being a rubber ducky mailing list 🐥 - Doug On Sun, Nov 26, 2023 at 9:10 AM Doug Turnbull wrote: > Thanks for taking the time Stefan > > 1. I had left in the stderr

[Numpy-discussion] Re: Meson - C extension - Finding numpy includes in virtual env

2023-11-26 Thread Doug Turnbull
Thanks -Doug On Sat, Nov 25, 2023 at 5:30 PM Stefan van der Walt via NumPy-Discussion < numpy-discussion@python.org> wrote: > Hi Doug, > > On Sat, Nov 25, 2023, at 07:14, Doug Turnbull wrote: > > Unfortunately the following command fails: > > incdir_numpy = run_command(py,

[Numpy-discussion] Meson - C extension - Finding numpy includes in virtual env

2023-11-25 Thread Doug Turnbull
I am converting a Numpy C extension Python project from distutils to meson. I've been following along the meson-python instructions ( https://meson-python.readthedocs.io/en/latest/tutorials/introduction.html) I've installed meson / ninja (and everything else...) into a virtualenv (python -m venv v

[Numpy-discussion] Generalized UFunc without output dimension specified as argument

2023-08-20 Thread Doug Turnbull
First of all, I really love the docs of the C API :) It's way above what I would expect! I was reviewing the signature possibilities for generalized UFuncs, and had a question https://numpy.org/doc/stable/reference/c-api/generalized-ufuncs.html I am playing with a UFunc that scores and returns s

[Numpy-discussion] Re: Test failures m1 OSX with apple clang

2023-08-14 Thread Doug Turnbull
Thanks Ralf Issue 24418 created. Happy to help where possible. https://github.com/numpy/numpy/issues/24418 On Mon, Aug 14, 2023 at 7:59 AM Ralf Gommers wrote: > > > On Mon, Aug 14, 2023 at 1:16 PM Doug Turnbull > wrote: > >> Hey all >> >> First time trying

[Numpy-discussion] Test failures m1 OSX with apple clang

2023-08-14 Thread Doug Turnbull
Hey all First time trying to build / test numpy main branch, so I'm probably doing something wrong. I brought down main and everything built on the first try. However I'm getting test failures related to meson. Specifically the tests in "python -m pytest numpy/core/tests/test_mem_policy.py" all

[Numpy-discussion] Re: Adding bit_count ufunc

2023-08-13 Thread Doug Turnbull
Hi all, Thanks for all the great work on this PR on using the CPU instruction for bitcounts. This will be really useful for hamming distance like calculations. I wanted to check if there was anything else needed to merge this PR? It seems like there was a lot of good feedback addressed. https://

[Numpy-discussion] Adding bit_count ufunc

2022-11-24 Thread Doug Turnbull
👋Long time numpy user, and big fan of all your work TL; DR - there's a `bit_count` method on numpy scalars, and Python ints, I'm advocating for a `ufunc` `bit_count` as has been implemented in this PR: https://github.com/numpy/numpy/pull/21429 A number of people have requested this as a numpy f