Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
python-ml-dtypes
Commits:
2a867d52 by Jelle van der Waa at 2024-03-02T17:48:08+01:00
Don't hardcode python version
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -44,5 +44,6 @@ package() {
ml_dtypes-$pkgver/dist/ml_dtypes-$pkgver-*-*.whl
# Remove artefacts of broken distribution.
- rm -rfv $pkgdir/usr/lib/python3.11/site-packages/third_party
+ local python_version=$(python -c 'import sys; print(".".join(map(str,
sys.version_info[:2])))')
+ rm -rfv $pkgdir/usr/lib/python$python_version/site-packages/third_party
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ml-dtypes/-/commit/2a867d5253e35dc2a7723a2409a4caa8c7e8c9bf
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ml-dtypes/-/commit/2a867d5253e35dc2a7723a2409a4caa8c7e8c9bf
You're receiving this email because of your account on gitlab.archlinux.org.