Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
python-maxminddb
Commits:
13308722 by Jelle van der Waa at 2024-03-02T14:48:32+01:00
Don't hardcode PYTHONPATH
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -34,7 +34,8 @@ build() {
check() {
cd MaxMind-DB-Reader-python
python -m installer -d tmp_install dist/*.whl
- PYTHONPATH=tmp_install/usr/lib/python3.11/site-packages pytest
+ local python_version=$(python -c 'import sys; print(".".join(map(str,
sys.version_info[:2])))')
+ PYTHONPATH=tmp_install/usr/lib/python${python_version}/site-packages pytest
}
package() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-maxminddb/-/commit/1330872229ccfd5de6ffebe1b2be381fec02a470
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-maxminddb/-/commit/1330872229ccfd5de6ffebe1b2be381fec02a470
You're receiving this email because of your account on gitlab.archlinux.org.