Package Details: python-kealib 0.1_1.5.3-1

Git Clone URL: https://aur.archlinux.org/python-kealib.git (read-only, click to copy)
Package Base: python-kealib
Description: Python library to access parts of kealib not exposed by GDAL
Upstream URL: http://kealib.org
Licenses: MIT
Submitter: hexd
Maintainer: hexd (dobedobedo)
Last Packager: hexd
Votes: 0
Popularity: 0.000000
First Submitted: 2018-05-27 04:29 (UTC)
Last Updated: 2024-02-05 04:16 (UTC)

Latest Comments

hexd commented on 2023-07-17 08:00 (UTC)

This one changed a lot upstream. There's no longer a setup.py and it doesn't have a pyproject.toml, but a cmake configuration to build it with pybind11, which wasn't a requirement previously. There's yet another new requirement, it needs awkward version 2.0.9+ (otherwise cmake will fail while attempting to download the headers), but python-awkward is currently in version 1.10.2 for Arch, already flagged to be upgraded.

I tried to force it a bit, but I first got:

extrat.cpp:40:10: fatal error: awkward/LayoutBuilder.h: No such file or directory
   40 | #include "awkward/LayoutBuilder.h"

Then I forced it more, with a custom setup.py to avoid the cmake config that attempts to get the headers, and with headers directly from awkward v1.10.2 (I checked and v1.10.3 has exactly the same headers). With this, I managed to compile it, but at that point I still wasn't able to use it:

AttributeError: 'awkward._ext.ListOffsetForm' object has no attribute 'to_dict'

Then I patched this lib to avoid to_dict since it didn't exist in awkward v1. From the tojson I wrote an alternative to get the dict. There were other incompatibilities, like a key format, but I adapted these too. Then the problem became the other test file, A missing environment variable while trying to test... well, after some time attempting, I found a way to get all tests passing with awkward 1.10.2. I'm just checking it once more and I'll push it here.

hexd commented on 2022-02-08 04:09 (UTC)

I'm keeping this strange version numbering because of this: https://github.com/ubarsc/kealib/blob/kealib-1.4.14/python/setup.py#L124

dobedobedo commented on 2022-02-07 19:20 (UTC)

Hi, I modified your PKGBUILD to install the latest version of python-kealib:

# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com>
# Contributor: dobedobedo <dobe0331 at gmail dot com>
_pkgname='kealib'
pkgname=('python'-$_pkgname)
_kea=1.4.14
pkgver=0.1_$_kea
pkgrel=1
pkgdesc="Python library to access parts of kealib not exposed by GDAL"
arch=('x86_64')
url='http://kealib.org'
license=('MIT')
makedepends=('python-setuptools')
depends=("kealib=$_kea" 'python')
options=(!emptydirs)
source=("$_pkgname-$_kea.tar.gz")
sha256sums=('da5d4a540b34afb61665cb7b6bf284825b51464eaf2a23ccca16955e2712cab2')

build() {
  cd "$srcdir/$_pkgname-$_kea/python"
  python setup.py build
}

package() {
  cd "$srcdir/$_pkgname-$_kea/python"
  python setup.py install --root="$pkgdir/" --skip-build
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}

Just a question: why not use the same versioning of kealib?