Skip to content

Commit

Permalink
Merge conda-forge/main into rapidsai/main (pt. 15) (#68)
Browse files Browse the repository at this point in the history
* Pin `string_prefix` across dependency outputs

* Bump `build_number` to `1`

Rebuild packages with `string_prefix` pinning alignment across packages.

* Drop extra parens from `skip`

* Drop unused patches

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jakirkham and github-actions[bot] committed Jul 31, 2024
1 parent ad107c2 commit 15afee9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 175 deletions.
32 changes: 0 additions & 32 deletions recipe/0002-Use-static-cudart.patch

This file was deleted.

82 changes: 0 additions & 82 deletions recipe/0003-numpy-ndarray-check.patch

This file was deleted.

46 changes: 0 additions & 46 deletions recipe/0004-pandas2-patch.patch

This file was deleted.

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

0 comments on commit 15afee9

Please sign in to comment.