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 /PKGBUILD | |
parent | 9bca087d504fd5828411586f2fce4cd762d14d83 (diff) | |
download | aur-db5861a31d1a0c3bcc80755f032a1681ac2106ee.tar.gz |
Fix bugs in build stage
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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 } |