Skip to content

Commit

Permalink
Update recipe style based on autoupdate bot preferences (#185)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] committed Jul 31, 2024
2 parents 09c3182 + d73b846 commit e759080
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
{% set build_number = 0 %}
{% set min_python = "3.8" %}

{% set string_prefix = "cuda" ~ (cuda_compiler_version | replace('.', '')) %} # [cuda_compiler_version != "None"]
{% set string_prefix = "cpu" %} # [cuda_compiler_version == "None"]
{% set string_prefix = "cuda" ~ (cuda_compiler_version | replace('.', '')) if (cuda_compiler_version or "None") != "None" else "cpu" %}

package:
name: xgboost-split
Expand All @@ -27,10 +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:
Expand All @@ -54,7 +50,7 @@ outputs:
script: install-libxgboost.sh # [not win]
script: install-win-wrapper.bat # [win]
build:
activate_in_script: True
activate_in_script: true
string: {{ string_prefix }}_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
ignore_run_exports_from:
- {{ compiler('cuda') }} # [(cuda_compiler_version or "").startswith("11")]
Expand Down Expand Up @@ -138,7 +134,7 @@ outputs:
- name: py-xgboost-cpu
build:
noarch: python
skip: True # [cuda_compiler != "None"]
skip: true # [cuda_compiler != "None"]
requirements:
host:
- python >={{ min_python }}
Expand All @@ -155,7 +151,7 @@ outputs:
- name: py-xgboost-gpu
build:
noarch: python
skip: True # [cuda_compiler == "None"]
skip: true # [cuda_compiler == "None"]
requirements:
host:
- python >={{ min_python }}
Expand Down Expand Up @@ -200,7 +196,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: {{ string_prefix }}_r{{ r_base | replace('.', '') }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
rpaths:
- lib/R/lib
Expand Down Expand Up @@ -257,8 +253,8 @@ outputs:

- name: r-xgboost-cpu
build:
skip: True # [cuda_compiler != "None"]
skip: True # [r_base in ("4.1", "4.2") or win]
skip: true # [cuda_compiler != "None"]
skip: true # [r_base in ("4.1", "4.2") or win]
requirements:
host:
- r-base
Expand All @@ -275,8 +271,8 @@ outputs:

- name: r-xgboost-gpu
build:
skip: True # [cuda_compiler == "None"]
skip: True # [r_base in ("4.1", "4.2") or win]
skip: true # [cuda_compiler == "None"]
skip: true # [r_base in ("4.1", "4.2") or win]
requirements:
host:
- r-base
Expand Down

0 comments on commit e759080

Please sign in to comment.