diff options
author | Daniel Bershatsky | 2019-02-21 21:06:47 +0300 |
---|---|---|
committer | Daniel Bershatsky | 2019-02-21 21:06:47 +0300 |
commit | db5861a31d1a0c3bcc80755f032a1681ac2106ee (patch) | |
tree | 9ad233d55f8ed44330c20badad7eecda75793653 | |
parent | 9bca087d504fd5828411586f2fce4cd762d14d83 (diff) | |
download | aur-db5861a31d1a0c3bcc80755f032a1681ac2106ee.tar.gz |
Fix bugs in build stage
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 17 |
3 files changed, 16 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = python-catboost-gpu-git pkgdesc = CatBoost is an open-source gradient boosting on decision trees library with categorical features support out of the box. - pkgver = r5141.a8f5a19bc - pkgrel = 1 + pkgver = 0.12.2 + pkgrel = 2 epoch = 0 url = https://catboost.yandex arch = i686 @@ -10,6 +10,8 @@ pkgbase = python-catboost-gpu-git depends = python-six depends = python-numpy depends = cuda + optdepends = python-pandas + optdepends = python-ipywidgets source = catboost::git+https://github.com/catboost/catboost.git source = cuda10deprecation.patch md5sums = SKIP diff --git a/.gitignore b/.gitignore index 5310140fd8dc..6143fb5d7b86 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ catboost/ src/ +pkg +*.tar.xz @@ -1,7 +1,7 @@ # Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru> pkgname=python-catboost-gpu-git -pkgver=r5141.a8f5a19bc -pkgrel=1 +pkgver=0.12.2 +pkgrel=2 epoch=0 pkgdesc="CatBoost is an open-source gradient boosting on decision trees library with categorical features support out of the box." arch=('i686' 'x86_64') @@ -10,7 +10,7 @@ license=('Apache-2.0') depends=('python-six' 'python-numpy' 'cuda') makedepends=() checkdepends=() -optdepends=() +optdepends=('python-pandas' 'python-ipywidgets') provides=() conflicts=() replaces=() @@ -33,18 +33,21 @@ build() { export YA_CACHE_DIR=/tmp/.ya cd "$srcdir/catboost" - git apply "$srcdir/catboost/cuda10deprecation.patch" + git apply "$srcdir/cuda10deprecation.patch" cd "$srcdir/catboost/catboost/python-package/catboost" ../../../ya make -r \ -DUSE_ARCADIA_PYTHON=no \ + -DOS_SDK=local \ -DPYTHON_CONFIG=python3-config \ -DHAVE_CUDA=yes \ - -DCUDA_ROOT=$CUDA_ROOT + -DCUDA_ROOT=/opt/cuda + + cd "$srcdir/catboost/catboost/python-package" + python3 mk_wheel.py -DCUDA_ROOT=/opt/cuda } package() { cd "$srcdir/catboost/catboost/python-package" - python3 mk_wheel.py -DCUDA_ROOT=$CUDA_ROOT - pip3 install --prefix $pkgdir/ catboost-*.whl + pip3 install --no-deps --prefix $pkgdir/usr catboost-*.whl } |