Skip to content

Commit

Permalink
Merge pull request #67 from hcho3/rapidsai
Browse files Browse the repository at this point in the history
Merge `conda-forge/main` into `rapidsai/main`
  • Loading branch information
raydouglass authored Jul 31, 2024
2 parents 9b6bce7 + 3733e56 commit ad107c2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 255 deletions.
6 changes: 1 addition & 5 deletions recipe/install-r-xgboost.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash

pushd ${SRC_DIR}/R-package
# Remove src/Makevars.win because it says:
# This file is only used for windows compilation from github
# It will be replaced with Makevars.in for the CRAN version
# rm src/Makevars.win
${R} CMD INSTALL --preclean --build . --configure-args="CXXFLAGS=-D_LIBCPP_DISABLE_AVAILABILITY" ${R_ARGS}
${R} CMD INSTALL --preclean --build . ${R_ARGS}
popd
20 changes: 9 additions & 11 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set name = "xgboost" %}
{% set version = "2.1.0" %}
{% set build_number = 1 %}
{% set version = "2.1.1" %}
{% set build_number = 0 %}
{% set min_python = "3.8" %}

package:
Expand All @@ -9,13 +9,10 @@ package:

source:
url: https://github.com/dmlc/xgboost/releases/download/v{{ version }}/xgboost-{{ version }}.tar.gz
sha256: 28bec8e821b1fefcea722d96add66024adba399063f723bc5c815f7af4a5f5e4
sha256: a47ca87f3345d2a866cd7ec40933564aa2b7250592d0e9bf613951630fc1fa6f
patches:
# xgboost patches
- patches/0001-Force-endian-flag-in-cross-compilation-mode.patch # [arm64 or aarch64 or ppc64le]
- patches/0002-Enable-latest-libcxx-on-MacOS.patch # [osx]
- patches/0003-Use-mingw-w64-path.patch
- patches/0004-Backport-fixes.patch
- patches/0001-Enable-latest-libcxx-on-MacOS.patch # [osx]

build:
number: {{ build_number }}
Expand All @@ -26,11 +23,12 @@ build:
# Windows CUDA 11.8 fails due to a compilation error
# xref: https://github.com/conda-forge/xgboost-feedstock/issues/173
{% if python is defined and cuda_compiler_version is defined %}
skip: {{ (
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")
) }}
) }}
{% endif %}

requirements:
Expand All @@ -55,7 +53,7 @@ outputs:
script: install-libxgboost.sh # [not win]
script: install-win-wrapper.bat # [win]
build:
activate_in_script: True
activate_in_script: true
string: rapidsai_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
ignore_run_exports_from:
- {{ compiler('cuda') }} # [(cuda_compiler_version or "").startswith("11")]
Expand Down Expand Up @@ -155,7 +153,7 @@ outputs:
script: install-r-xgboost.sh # [not win]
script: install-r-xgboost.bat # [win]
build:
skip: True # [r_base in ("4.1", "4.2") or win]
skip: true # [r_base in ("4.1", "4.2") or win]
string: rapidsai_r{{ r_base | replace('.', '') }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
rpaths:
- lib/R/lib
Expand Down

This file was deleted.

41 changes: 0 additions & 41 deletions recipe/patches/0003-Use-mingw-w64-path.patch

This file was deleted.

143 changes: 0 additions & 143 deletions recipe/patches/0004-Backport-fixes.patch

This file was deleted.

0 comments on commit ad107c2

Please sign in to comment.