pyodide/packages/xgboost/meta.yaml

32 lines
978 B
YAML

package:
name: xgboost
version: 1.6.1
top-level:
- xgboost
source:
url: https://files.pythonhosted.org/packages/0e/8c/19309bcaf9a88b0bab34b88935925153f3f3f646163acaae9aa148cf72bb/xgboost-1.6.1.tar.gz
sha256: 24072028656f3428e7b8aabf77340ece057f273e41f7f85d67ccaefb7454bb18
patches:
- patches/0001-Add-missing-template-type.patch
- patches/0002-Add-library-loading-path.patch
- patches/0003-Fix-type-mismatch-for-CSR-conversion-in-c_api.patch
build:
cflags: |
-DDMLC_USE_FOPEN64=0
-DDMLC_ENABLE_STD_THREAD=0
-DDMLC_CXX11_THREAD_LOCAL=0
-DUSE_OPENMP=0
# xgboost uses dlsym so we need to export more than just PyInit_xgboost.
# We can't currently use "explicit" because there are too many exports.
exports: "whole_archive"
requirements:
run:
- numpy
- scipy
- setuptools
about:
home: https://github.com/dmlc/xgboost
PyPI: https://pypi.org/project/xgboost
summary: XGBoost Python Package
license: Apache-2.0