From 9dbd44ffaf3e13fdc8cc7d8d72de76b2b148ba0a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 3 Jan 2025 13:09:38 +0530 Subject: [PATCH] Add is_abi3 and is_python_min helper variables --- recipe/conda_build_config.yaml | 12 ++++++++++-- recipe/migrations/python313.yaml | 2 ++ recipe/migrations/python313t.yaml | 5 +++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index 9fc2f99cca..14cbe6e7d9 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -187,6 +187,7 @@ zip_keys: - python - numpy - python_impl + - is_python_min - - libarrow - libarrow_all @@ -834,13 +835,13 @@ pulseaudio_daemon: pybind11_abi: - 4 python: - # part of a zip_keys: python, python_impl, numpy + # part of a zip_keys: python, python_impl, numpy, is_python_min - 3.9.* *_cpython - 3.10.* *_cpython - 3.11.* *_cpython - 3.12.* *_cpython python_impl: - # part of a zip_keys: python, python_impl, numpy + # part of a zip_keys: python, python_impl, numpy, is_python_min - cpython - cpython - cpython @@ -851,6 +852,13 @@ python_min: - '3.9' is_freethreading: - false +is_python_min: + - true + - false + - false + - false +is_abi3: + - true # Keep in sync with libtorch pytorch: - '2.4' diff --git a/recipe/migrations/python313.yaml b/recipe/migrations/python313.yaml index 119bed8a2a..f43e9d6c10 100644 --- a/recipe/migrations/python313.yaml +++ b/recipe/migrations/python313.yaml @@ -40,3 +40,5 @@ numpy: - 2 python_impl: - cpython +is_python_min: +- false diff --git a/recipe/migrations/python313t.yaml b/recipe/migrations/python313t.yaml index 14b90840c3..065dcc6f5a 100644 --- a/recipe/migrations/python313t.yaml +++ b/recipe/migrations/python313t.yaml @@ -34,6 +34,7 @@ __migrator: additional_zip_keys: - channel_sources - is_freethreading + - is_abi3 wait_for_migrators: - python313 @@ -48,3 +49,7 @@ python_impl: - cpython is_freethreading: - true +is_python_min: +- false +is_abi3: +- false