[arch-commits] Commit in gdal/trunk (PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Fri Jul 1 12:20:25 UTC 2022
Date: Friday, July 1, 2022 @ 12:20:24
Author: archange
Revision: 1243171
Remove build root from bytecompiled python + hardlink dupes
Modified:
gdal/trunk/PKGBUILD
----------+
PKGBUILD | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-01 11:59:24 UTC (rev 1243170)
+++ PKGBUILD 2022-07-01 12:20:24 UTC (rev 1243171)
@@ -6,7 +6,7 @@
pkgbase=gdal
pkgname=(gdal python-gdal)
pkgver=3.5.0
-pkgrel=3
+pkgrel=4
pkgdesc="A translator library for raster and vector geospatial data formats"
arch=(x86_64)
url="https://gdal.org/"
@@ -103,8 +103,9 @@
install -d "${pkgdir}"/usr/{bin,lib}
mv bin/* "${pkgdir}"/usr/bin
mv lib/* "${pkgdir}"/usr/lib
- local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
- python -m compileall -o 0 -o 1 -o 2 "${pkgdir}${site_packages}"
install -dm755 "${pkgdir}"/usr/share/licenses
ln -s $pkgbase "${pkgdir}"/usr/share/licenses/$pkgname
+ # byte-compile python modules since the CMake build does not do it.
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ python -m compileall -o 0 -o 1 -o 2 --hardlink-dupes -s "${pkgdir}" "${pkgdir}"${site_packages}
}
More information about the arch-commits
mailing list