Yes, that does look like a conda-forge issue. I think it's this one:
https://github.com/conda-forge/python-feedstock/issues/738

On Tue, Nov 26, 2024 at 6:06 PM george trojan via NumPy-Discussion <
numpy-discussion@python.org> wrote:

> My apologies if this is a wrong venue. Is this a conda-forge problem?
> When I run
>
> mamba create -n foo meson-python numpy 'python>=3.13'
>
> the free-threaded python is selected:
>
>  + python                 3.13.0  h6355ac2_0_cp313t    conda-forge
> Cached
>  + numpy                   2.1.3  py313hb01392b_0      conda-forge
> Cached
>
> When python spec is moved to the front, I do get the "usual" version.
> However, when I build a python extension with conda-build, I do not control
> the order. The extension is created for the free-threaded version. Here is
> my requirements section in recipe/meta.yaml:
>
> requirements:
>   build:
>     - {{ compiler('c') }}
>     - {{ compiler('fortran') }}
>   host:
>     - python >=3.13
>     - python_abi =3.13.* *_cp313  # needed to prevent selection of
> freethreaded python
>     - meson-python
>     - numpy >=2.0
>     - pip
>   run:
>     - python >=3.13
>     - numpy >=2.0
>
> I did manage to find a workaround, which is the python_abi line. Am I
> doing it right?
>
>
>
>
>
> _______________________________________________
> NumPy-Discussion mailing list -- numpy-discussion@python.org
> To unsubscribe send an email to numpy-discussion-le...@python.org
> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
> Member address: ralf.gomm...@googlemail.com
>
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to