Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge conda-forge/main into rapidsai/main (pt. 15) #68

Merged
merged 6 commits into from
Jul 31, 2024
Merged
Changes from 5 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
29 changes: 14 additions & 15 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{% set name = "xgboost" %}
{% set version = "2.1.1" %}
{% set build_number = 0 %}
{% set build_number = 1 %}
{% set min_python = "3.8" %}

{% set string_prefix = "rapidsai" %}

package:
name: xgboost-split
version: {{ version }}
Expand All @@ -24,11 +26,7 @@ build:
# xref: https://github.com/conda-forge/xgboost-feedstock/issues/173
{% if python is defined and cuda_compiler_version is defined %}
skip: >-
{{ (
((linux or win) and cuda_compiler_version == "None") or
python.split(".")[:2] != min_python.split(".")[:2] or
(win and cuda_compiler_version == "11.8")
) }}
{{ ((linux or win) and cuda_compiler_version == "None") or python.split(".")[:2] != min_python.split(".")[:2] or (win and cuda_compiler_version == "11.8") }}
{% endif %}

requirements:
Expand All @@ -54,7 +52,7 @@ outputs:
script: install-win-wrapper.bat # [win]
build:
activate_in_script: true
string: rapidsai_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
string: {{ string_prefix }}_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
ignore_run_exports_from:
- {{ compiler('cuda') }} # [(cuda_compiler_version or "").startswith("11")]
- librmm # [linux and cuda_compiler != "None"]
Expand Down Expand Up @@ -95,7 +93,7 @@ outputs:
script: install-win-wrapper.bat # [win]
build:
noarch: python
string: rapidsai_pyh{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
string: {{ string_prefix }}_pyh{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
force_use_keys:
- librmm # [linux and cuda_compiler != "None"]
script_env:
Expand All @@ -112,13 +110,13 @@ outputs:
- cross-python_{{ target_platform }} # [build_platform != target_platform]
host:
- {{ pin_subpackage('libxgboost', max_pin='x.x.x') }}
- libxgboost =*=rapidsai_h*_{{ PKG_BUILDNUM }}
- libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }}
- python >={{ min_python }}
- hatchling >=1.12.1
- pip
run:
- {{ pin_subpackage('libxgboost', max_pin='x.x.x') }}
- libxgboost =*=rapidsai_h*_{{ PKG_BUILDNUM }}
- libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }}
- python >={{ min_python }}
- numpy
- scipy
Expand All @@ -132,17 +130,18 @@ outputs:

- name: xgboost
build:
string: rapidsai_pyh{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
string: {{ string_prefix }}_pyh{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
force_use_keys:
- librmm # [linux and cuda_compiler != "None"]
requirements:
host:
- python >={{ min_python }}
- {{ pin_subpackage('py-xgboost', max_pin="x.x.x.x.x.x") }}
- py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }}
run:
- python >={{ min_python }}
- {{ pin_subpackage('py-xgboost', max_pin="x.x.x.x.x.x") }}
- py-xgboost =*=rapidsai_pyh*_{{ PKG_BUILDNUM }}
- py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }}
test:
requires:
- python
Expand All @@ -154,7 +153,7 @@ outputs:
script: install-r-xgboost.bat # [win]
build:
skip: true # [r_base in ("4.1", "4.2") or win]
string: rapidsai_r{{ r_base | replace('.', '') }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
string: {{ string_prefix }}_r{{ r_base | replace('.', '') }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
rpaths:
- lib/R/lib
force_use_keys:
Expand Down Expand Up @@ -186,7 +185,7 @@ outputs:
- r-knitr # [build_platform != target_platform]
host:
- {{ pin_subpackage('libxgboost', max_pin='x.x.x') }}
- libxgboost =*=rapidsai_h*_{{ PKG_BUILDNUM }}
- libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }}
- r-base
- r-matrix
- r-data.table
Expand All @@ -195,7 +194,7 @@ outputs:
- r-knitr
run:
- {{ pin_subpackage('libxgboost', max_pin='x.x.x') }}
- libxgboost =*=rapidsai_h*_{{ PKG_BUILDNUM }}
- libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }}
- r-base
- r-matrix
- r-data.table
Expand Down
Loading