diff options
author | Martino Pilia | 2020-04-23 21:33:04 +0200 |
---|---|---|
committer | Martino Pilia | 2020-04-23 21:33:04 +0200 |
commit | b1b5f8f4a3aed2cc7a3551fcb3b9b61aa934e963 (patch) | |
tree | f872e1cd93c89bfaa8a195e615693bb69748c840 | |
parent | b59c46593ae6b01b704bb6c1c7af55e8c08042f9 (diff) | |
download | aur-python-pptk-git.tar.gz |
Patch broken usage of internal pip components
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 10 insertions, 2 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 = 4 + pkgrel = 5 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=4 +pkgrel=5 pkgdesc="Python package for visualizing and processing 2-d/3-d point clouds" arch=('x86_64') url="https://github.com/heremaps/pptk.git" @@ -39,6 +39,14 @@ prepare() { sed -i 's,.*,,g' pptk/libs/CMakeLists.txt sed -i 's,PythonLibs 2.7 REQUIRED,PythonLibs 3.5 REQUIRED,' CMakeLists.txt sed -i 's,../libs/qt_plugins,/usr/lib/qt/plugins,' pptk/viewer/qt.conf + + # Patch broken usage of internal pip components + sed -i -e 's,from pip._internal.*,from pip._internal.pep425tags import get_supported,' \ + -e 's,wheel.pep425tags.*,get_supported()[0],g' \ + -e 's,wheel_tags\[0\],wheel_tags._interpreter,g' \ + -e 's,wheel_tags\[2\],wheel_tags._platform,g' \ + setup.py + cmake . \ -DEigen_INCLUDE_DIR:FILEPATH="/usr/include/eigen3" \ -DNumpy_INCLUDE_DIR="$(python -c 'import numpy; print("%s/numpy" % numpy.get_include())')" \ |