diff options
author | Martino Pilia | 2019-11-23 20:04:37 +0200 |
---|---|---|
committer | Martino Pilia | 2019-11-23 20:04:37 +0200 |
commit | d3bd8a9e6c800a3aa0485cb1309a35cf554ddaaa (patch) | |
tree | 3a2078bfbe41a026e3cca10f8dbd242a71c45ef4 | |
parent | 8c950ffb2a691c3fb97c305ddfe9d05cc778e515 (diff) | |
download | aur-d3bd8a9e6c800a3aa0485cb1309a35cf554ddaaa.tar.gz |
No hard-coded Python version
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = python-pptk-git pkgdesc = Python package for visualizing and processing 2-d/3-d point clouds pkgver = r49.697c09a - pkgrel = 2 + pkgrel = 3 url = https://github.com/heremaps/pptk.git arch = x86_64 license = MIT @@ -2,7 +2,7 @@ _name=pptk pkgname=python-$_name-git pkgver=r49.697c09a -pkgrel=2 +pkgrel=3 pkgdesc="Python package for visualizing and processing 2-d/3-d point clouds" arch=('x86_64') url="https://github.com/heremaps/pptk.git" @@ -57,7 +57,7 @@ build() { package() { cd "$srcdir/$_name" - _py_version=$(python --version | grep -o '[0-9]\.[0-9]\+') + _py_version=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps ./dist/*.whl python -O -m compileall "${pkgdir}/usr/lib/python${_py_version}/site-packages/$_name" ln -s /usr/lib/qt/plugins "${pkgdir}/usr/lib/python${_py_version}/site-packages/$_name/libs/qt_plugins" |