This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
/
Copy pathmeta.yaml
56 lines (50 loc) · 1.46 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{% set version='0.60' %}
package:
name: xgboost
version: {{ version }}
source:
git_url: https://github.com/dmlc/xgboost
git_tag: v{{ version }}
patches:
- 0001-conda-Unbundle-libxgboost.-so-dll.patch
- 0002-Fix-R-package-PKGROOT.patch
- 0003-Fix-R-package-mingw-w64-compiler-flags-remove-m64.patch
- 0001-Do-not-define-fopen64-as-std-fopen-on-32-bit-mingw-w.patch
requirements:
build:
- gcc [unix]
- git [not win]
- m2-git [win]
- posix [win]
- m2w64-toolchain [win]
outputs:
- name: libxgboost
script: install-libxgboost.sh
requirements:
- m2w64-gcc-libs [win]
- libgcc [unix]
- name: py-xgboost
requirements:
- {{ pin_subpackage('libxgboost', exact=True) }}
- python {{ python }}
- numpy {{ numpy }}
- scipy
- scikit-learn
script: install-py-xgboost.sh
test:
script: test-py-xgboost.py
- name: r-xgboost
requirements:
# On macOS, R packages are built using clang/clang++ so
# they cannot re-use the same libxgboost shared library.
# It may be worthwhile to keep as a dependency though for
# the command-line program?
- {{ pin_subpackage('libxgboost', exact=True) }} # [not osx]
- r-base {{ r_base }}
- r-matrix
- r-data.table
- r-magrittr
- r-stringi
script: install-r-xgboost.sh
test:
script: test-r-xgboost.r