[arch-commits] Commit in python-awkward/repos (2 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Mon Feb 7 10:22:15 UTC 2022


    Date: Monday, February 7, 2022 @ 10:22:14
  Author: kgizdov
Revision: 1127438

archrelease: copy trunk to community-x86_64

Added:
  python-awkward/repos/community-x86_64/
  python-awkward/repos/community-x86_64/PKGBUILD
    (from rev 1127434, python-awkward/trunk/PKGBUILD)

----------+
 PKGBUILD |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

Copied: python-awkward/repos/community-x86_64/PKGBUILD (from rev 1127434, python-awkward/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-02-07 10:22:14 UTC (rev 1127438)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_pkgname=awkward
+pkgname="python-${_pkgname}"
+pkgver=1.7.0
+pkgrel=1
+pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
+url="https://github.com/scikit-hep/awkward-array"
+license=('BSD')
+arch=('x86_64')
+depends=('python-numpy')
+optdepends=('cuda: CUDA support')
+makedepends=('cmake' 'git' 'python-setuptools' 'cuda')
+checkdepends=('python-pyaml' 'python-pytest' 'python-pytest-cov' 'python-pandas' 'python-numexpr' 'python-pyarrow' 'python-vector')
+source=(
+  "${pkgname}::git+https://github.com/scikit-hep/${_pkgname}-1.0#tag=${pkgver}"
+  "${pkgname}-dlpack::git+https://github.com/dmlc/dlpack.git"
+  "${pkgname}-rapidjson::git+https://github.com/Tencent/rapidjson.git"
+  "${pkgname}-pybind11::git+https://github.com/pybind/pybind11.git"
+)
+
+sha512sums=('SKIP'
+            'SKIP'
+            'SKIP'
+            'SKIP')
+
+get_pyver () {
+    python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
+}
+
+prepare() {
+  cd "${srcdir}/${pkgname}"
+  git submodule init
+
+  git config submodule."pybind11".url "${srcdir}/${pkgname}"-pybind11
+  git config submodule."rapidjson".url "${srcdir}/${pkgname}"-rapidjson
+  git config submodule."dlpack".url "${srcdir}/${pkgname}"-dlpack
+
+  git submodule update --init --recursive
+}
+
+build() {
+  cd "${pkgname}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}"
+  PYTHONPATH="build/lib.linux-${CARCH}-$(get_pyver)" pytest tests
+}
+
+package() {
+  cd "${pkgname}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"${pkgname}"/LICENSE
+  cd "${pkgdir}/usr/lib/python$(get_pyver)/site-packages"
+  # ln -s awkward1 awkward
+}



More information about the arch-commits mailing list