Skip to content

Commit

Permalink
add mutex packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhelmus authored and beckermr committed Oct 3, 2018
1 parent 91874a1 commit 6d81868
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ outputs:
- llvm-openmp >=4.0.1 # [osx]
- m2w64-gcc-libs # [win]

- name: _py-xgboost-mutex
version: 2.0
build:
string: cpu_0

- name: py-xgboost
script: install-py-xgboost.sh
requirements:
Expand All @@ -64,6 +69,7 @@ outputs:
- setuptools
run:
- {{ pin_subpackage('libxgboost', exact=True) }}
- {{ pin_subpackage('_py-xgboost-mutex', exact=True) }}
- llvm-openmp >=4.0.1 # [osx]
- python
- numpy
Expand All @@ -72,6 +78,19 @@ outputs:
test:
script: test-py-xgboost.py

- name: py-xgboost-cpu
requirements:
host:
- python
run:
- python
- {{ pin_subpackage('py-xgboost', exact=True) }}

- name: _r-xgboost-mutex
version: 2.0
build:
string: cpu_0

- name: r-xgboost
script: install-r-xgboost.sh
build:
Expand Down Expand Up @@ -102,6 +121,7 @@ outputs:
- r-knitr
run:
- {{ pin_subpackage('libxgboost', exact=True) }}
- {{ pin_subpackage('_r-xgboost-mutex', exact=True) }}
- llvm-openmp >=4.0.1 # [osx]
- {{ r_implementation }}
- r-matrix
Expand All @@ -113,3 +133,11 @@ outputs:
- test-r-xgboost.r
commands:
- Rscript test-r-xgboost.r

- name: r-xgboost-cpu
requirements:
host:
- {{ r_implementation }}
run:
- {{ r_implementation }}
- {{ pin_subpackage('r-xgboost', exact=True) }}

0 comments on commit 6d81868

Please sign in to comment.