mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-10 08:12:35 +02:00
this is only a partial rebuild, including stuff that i built on my personal machine with python 3.12.2; might fail with 3.12.3
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
|
|
# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
|
|
pkgname=py3-pdal
|
|
pkgver=3.2.3
|
|
pkgrel=4
|
|
pkgdesc="PDAL Python bindings"
|
|
options="!check" # disabled - failing test with circular import
|
|
url="https://github.com/pdal/python"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-numpy"
|
|
checkdepends="pdal py3-pytest"
|
|
makedepends="python3-dev pdal-dev py3-scikit-build py3-numpy-dev cmake ninja py3-pybind11-dev"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/PDAL/python/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/python-$pkgver"
|
|
|
|
replaces="py-pdal" # Backwards compatibility
|
|
provides="py-pdal=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build -DWITH_TESTS=ON
|
|
}
|
|
|
|
check() {
|
|
export PYTHONPATH=$PYTHONPATH:$(python -c "import os, skbuild; print(os.path.join('plugins', skbuild.constants.SKBUILD_DIR(), 'cmake-build'))")
|
|
py.test -v test/
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
363c3ffe25f4f5498ceddf9b2dc93793e70ecbf787d8c393a55be68ae3432119557be3b28122476030a81009a1f8882079dd10deb9087fcbe1eaec1c8dc44808 py3-pdal-3.2.3.tar.gz
|
|
"
|