diff options
author | Dmitry Popov | 2020-02-14 00:09:59 +0300 |
---|---|---|
committer | Dmitry Popov | 2020-02-14 00:11:40 +0300 |
commit | ddb21f864ea7e472ca9dc0e4523d226ed5c01d60 (patch) | |
tree | 26a5fff823536745d6be77a19763151d5106541d /PKGBUILD | |
parent | ed4c6fc192829a4659d558f3b7648b51f71fa50e (diff) | |
download | aur-ddb21f864ea7e472ca9dc0e4523d226ed5c01d60.tar.gz |
Drop python2 support (as upstream did)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -3,8 +3,7 @@ _name=xgboost pkgbase=xgboost-git pkgname=('xgboost-git' - 'python-xgboost-git' - 'python2-xgboost-git') + 'python-xgboost-git') pkgver=r3854.97007765 pkgrel=1 url='https://github.com/dmlc/xgboost' @@ -14,7 +13,7 @@ source=('git+https://github.com/dmlc/xgboost.git' 'git+https://github.com/dmlc/rabit' 'git+https://github.com/NVlabs/cub' 'python_no_libs.patch') -makedepends=('python2-setuptools' 'python-setuptools') +makedepends=('python-setuptools') arch=('x86_64') sha256sums=('SKIP' 'SKIP' @@ -46,8 +45,7 @@ package_xgboost-git() { pkgdesc='An optimized distributed gradient boosting library designed to be highly efficient, flexible and portable' provides=('xgboost') conflicts=('xgboost') - optdepends=('python-xgboost-git: Python 3 Wrapper' - 'python2-xgboost-git: Python 2 Wrapper') + optdepends=('python-xgboost-git: Python 3 Wrapper') cd "${_name}" @@ -76,20 +74,6 @@ package_xgboost-git() { cp -r demo "${pkgdir}"/opt/xgboost } -package_python2-xgboost-git() { - pkgdesc='XGBoost Python 2 wrapper' - depends=('xgboost' - 'python2' - 'python2-numpy' - 'python2-scipy') - conflicts=('python2-xgboost') - provides=('python2-xgboost') - - cd "${_name}/python-package" - - python2 setup.py install --root="${pkgdir}" --optimize=1 -} - package_python-xgboost-git() { pkgdesc='XGBoost Python 3 wrapper' depends=('xgboost' |