Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -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" %}
Expand Down Expand Up @@ -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 }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This includes the string_prefix and the build/number, which means we get the same generation of packages together

- 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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down