From dbe29ddcde2fab4472fd21e4b94244315beea7f3 Mon Sep 17 00:00:00 2001 From: Yuyang Wang Date: Tue, 15 Oct 2024 16:05:30 -0700 Subject: [PATCH 1/2] change recipe to accept env variable to control whether noarch build --- recipe/meta.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index c94f05798cc..c143289a5cb 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,6 @@ {% set name = "snowflake-snowpark-python" %} {% set version = "1.23.0" %} +{% set noarch_build = (os.environ.get('SNOWFLAKE_SNOWPARK_PYTHON_NOARCH_BUILD', 'false') | lower) == 'true' %} package: name: {{ name|lower }} @@ -15,6 +16,9 @@ build: script: {{ PYTHON }} -m pip install . --no-deps -vvv script_env: - SNOWFLAKE_IS_PYTHON_RUNTIME_TEST=1 +{% if noarch_build %} + noarch: python +{% endif %} requirements: host: From 529d8fa173e4d07828df01f6198e271030dc6b92 Mon Sep 17 00:00:00 2001 From: Yuyang Wang Date: Thu, 17 Oct 2024 14:02:30 -0700 Subject: [PATCH 2/2] change recipe --- recipe/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index c143289a5cb..75e8b719a50 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,6 +1,6 @@ {% set name = "snowflake-snowpark-python" %} {% set version = "1.23.0" %} -{% set noarch_build = (os.environ.get('SNOWFLAKE_SNOWPARK_PYTHON_NOARCH_BUILD', 'false') | lower) == 'true' %} +{% set noarch_build = (os.environ.get('SNOWFLAKE_SNOWPARK_PYTHON_NOARCH_BUILD', 'false')) == 'true' %} package: name: {{ name|lower }}