diff --git a/recipe/meta.yaml b/recipe/meta.yaml index cb68c656..f4d30517 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,6 +1,6 @@ {% set name = "xgboost" %} {% set version = "2.1.1" %} -{% set build_number = 0 %} +{% set build_number = 1 %} {% set min_python = "3.8" %} {% set string_prefix = "cuda" ~ (cuda_compiler_version | replace('.', '')) if (cuda_compiler_version or "None") != "None" else "cpu" %} @@ -26,7 +26,7 @@ build: # xref: https://github.com/conda-forge/xgboost-feedstock/issues/173 {% if python is defined and cuda_compiler_version is defined %} skip: >- - {{ ( python.split(".")[:2] != min_python.split(".")[:2] or (win and cuda_compiler_version == "11.8") ) }} + {{ python.split(".")[:2] != min_python.split(".")[:2] or (win and cuda_compiler_version == "11.8") }} {% endif %} requirements: @@ -113,12 +113,14 @@ outputs: host: - {{ pin_subpackage('_py-xgboost-mutex', exact=True) }} - {{ pin_subpackage('libxgboost', max_pin='x.x.x') }} + - libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }} - python >={{ min_python }} - hatchling >=1.12.1 - pip run: - {{ pin_subpackage('_py-xgboost-mutex', exact=True) }} - {{ pin_subpackage('libxgboost', max_pin='x.x.x') }} + - libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }} - python >={{ min_python }} - numpy - scipy @@ -139,9 +141,11 @@ outputs: host: - python >={{ min_python }} - {{ pin_subpackage('py-xgboost', exact=True) }} + - py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }} run: - python >={{ min_python }} - {{ pin_subpackage('py-xgboost', exact=True) }} + - py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }} test: requires: - python @@ -156,9 +160,11 @@ outputs: host: - python >={{ min_python }} - {{ pin_subpackage('py-xgboost', exact=True) }} + - py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }} run: - python >={{ min_python }} - {{ pin_subpackage('py-xgboost', exact=True) }} + - py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }} - __cuda # [cuda_compiler != "None"] test: requires: @@ -174,9 +180,11 @@ outputs: host: - python >={{ min_python }} - {{ pin_subpackage('py-xgboost', exact=True) }} + - py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }} run: - python >={{ min_python }} - {{ pin_subpackage('py-xgboost', exact=True) }} + - py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }} - __cuda # [cuda_compiler != "None"] test: requires: @@ -228,6 +236,7 @@ outputs: host: - {{ pin_subpackage('_r-xgboost-mutex', exact=True) }} - {{ pin_subpackage('libxgboost', max_pin='x.x.x') }} + - libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }} - r-base - r-matrix - r-data.table @@ -237,6 +246,7 @@ outputs: run: - {{ pin_subpackage('_r-xgboost-mutex', exact=True) }} - {{ pin_subpackage('libxgboost', max_pin='x.x.x') }} + - libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }} - r-base - r-matrix - r-data.table @@ -259,9 +269,11 @@ outputs: host: - r-base - {{ pin_subpackage('r-xgboost', exact=True) }} + - r-xgboost =*={{ string_prefix }}_r*h*_{{ PKG_BUILDNUM }} run: - r-base - {{ pin_subpackage('r-xgboost', exact=True) }} + - r-xgboost =*={{ string_prefix }}_r*h*_{{ PKG_BUILDNUM }} test: requires: - r-base @@ -277,9 +289,11 @@ outputs: host: - r-base - {{ pin_subpackage('r-xgboost', exact=True) }} + - r-xgboost =*={{ string_prefix }}_r*h*_{{ PKG_BUILDNUM }} run: - r-base - {{ pin_subpackage('r-xgboost', exact=True) }} + - r-xgboost =*={{ string_prefix }}_r*h*_{{ PKG_BUILDNUM }} - __cuda # [cuda_compiler != "None"] test: requires: