python-xgboost-cuda
MEDIUM
maintainer Smoolak
0 votes
scanned 2026-10-19 09:25:06.082550
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: redponike <proton (dot) me>
2
3
_pyname=xgboost
4
pkgname=python-xgboost-cuda
5
pkgver=3.0.0
6
pkgrel=1
7
pkgdesc="Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library. Compiled with CUDA support."
8
arch=('x86_64')
9
url="https://xgboost.ai"
10
license=('Apache-2.0')
11
provides=('python-xgboost')
12
conflicts=('python-xgboost' 'python-xgboost-git')
13
depends=(
14
'python-numpy'
15
'python-scipy'
16
'python-hypothesis'
17
'cuda'
18
'nccl'
19
)
20
makedepends=(
21
'python-build'
22
'python-installer'
23
'python-wheel'
24
'python-hatchling'
25
'python-setuptools'
26
'python-packaging'
27
'cmake'
28
'ninja'
29
'git'
30
)
31
checkdepends=('python-pytest' 'python-loky')
32
optdepends=(
33
'apache-spark: Distributed training support'
34
'python-pyspark: Distributed training support with PySpark'
35
'python-matplotlib: Plotting with matplotlib'
36
'python-graphviz: Plotting with graphviz'
37
'python-dask: Dask support - Needs python-pandas and python-distributed'
38
'python-pandas: Dask support dependency'
39
'python-distributed: Dask support dependency'
40
'python-cloudpickle: PySpark support dependency'
41
'python-scikit-learn'
42
'python-pyarrow'
43
)
44
source=(
45
$_pyname-$pkgver.tar.gz::https://github.com/dmlc/xgboost/archive/refs/tags/v$pkgver.tar.gz
46
git+https://github.com/dmlc/dmlc-core.git#commit=13341857549852a9a86b1894b5ba84c6276ab381
47
git+https://github.com/rapidsai/gputreeshap.git#commit=40eae8c4c45974705f8053e4d3d05b88e3cfaefd
48
)
49
sha256sums=('4b8775e3fcf17d9b2e7b458ca1f37a93706aa6959c2e0c64672e6e4974660f45'
50
'8608303201f07bf3f7f8809e6db5bd64fbfcf964c0aceabbc4cf891271011cf7'
51
'0850233f9f4433bc2af8330a5c464a2cf8c43d2e46eaab875753157a100d8039')
52
53
prepare() {
54
cd "$srcdir/$_pyname-$pkgver"
55
56
rm -rf dmlc-core
57
ln -sf "$srcdir/dmlc-core" \
58
"$srcdir/$_pyname-$pkgver/dmlc-core"
59
60
rm -rf gputreeshap
61
ln -sf "$srcdir/gputreeshap" \
62
"$srcdir/$_pyname-$pkgver/gputreeshap"
63
}
64
65
build() {
66
cd "$srcdir"
67
cmake -B build -S $_pyname-$pkgver \
68
-D CMAKE_INSTALL_PREFIX=/usr \
69
-D BUILD_DEPRECATED_CLI=ON \
70
-D USE_CXX14_IF_AVAILABLE=ON \
71
-D FORCE_COLORED_OUTPUT=ON \
72
-D USE_OPENMP=ON \
73
-D USE_NCCL=ON \
74
-D USE_CUDA=ON \
75
-G Ninja \
76
-W no-dev
77
cmake --build build
78
79
cd $_pyname-$pkgver/python-package
80
python \
81
-m build \
82
--wheel \
83
--no-isolation \
84
--skip-dependency-check
85
}
86
87
check() {
88
cd $_pyname-$pkgver
89
90
python -m venv --system-site-packages test-env
91
source test-env/bin/activate
92
python -m installer python-package/dist/*.whl
93
94
python -m pytest -v tests/python -k 'not test_rabit_ops_ipv6'
95
96
deactivate
97
}
98
99
package() {
100
cd "$srcdir/$_pyname-$pkgver/python-package"
101
python \
102
-m installer dist/*.whl \
103
--destdir="$pkgdir" \
104
--compile-bytecode=2
105
}
106
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-19 09:25:06 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |