[arch-commits] Commit in xapps/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Fri Apr 24 05:39:08 UTC 2020
Date: Friday, April 24, 2020 @ 05:39:08
Author: eschwartz
Revision: 618763
xapps: drop unused python2 code and makedepends
No one was using python2 gi overrides, so they were dropped in source.
Modified:
xapps/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-24 05:38:00 UTC (rev 618762)
+++ PKGBUILD 2020-04-24 05:39:08 UTC (rev 618763)
@@ -10,7 +10,7 @@
url="https://github.com/linuxmint/${pkgname}"
license=('GPL')
depends=('libdbusmenu-gtk3' 'libgnomekbd')
-makedepends=('meson' 'samurai' 'gobject-introspection' 'python-gobject' 'python2-gobject' 'vala')
+makedepends=('meson' 'samurai' 'gobject-introspection' 'python-gobject' 'vala')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('71ac9b89885630bc096202c4766493bb246ca1b2f0bd115efa4f0a5041f8f7e1')
b2sums=('2179e8aea85a1b2b6e10d02560cc74f3a1d88d66ae5ed95c92d86a82b69fa7414e94d358eb5ee42ec03e35291bc3ba0f75019c7f602e6e2d36de642b8ae6e3d7')
@@ -36,11 +36,9 @@
# byte-compile python modules since meson does not implement autotools'
# py-compile.
# This is kind of ugly but removes traces of the build root.
- for _python in python3 python2; do
- while read -rd '' _file; do
- _destdir="$(dirname "${_file#${pkgdir}}")"
- ${_python} -m compileall -d "${_destdir}" "${_file}"
- ${_python} -O -m compileall -d "${_destdir}" "${_file}"
- done < <(find "${pkgdir}"/usr/lib/${_python}* -name '*.py' -print0)
- done
+ while read -rd '' _file; do
+ _destdir="$(dirname "${_file#${pkgdir}}")"
+ python -m compileall -d "${_destdir}" "${_file}"
+ python -O -m compileall -d "${_destdir}" "${_file}"
+ done < <(find "${pkgdir}"/usr/lib/python3* -name '*.py' -print0)
}
More information about the arch-commits
mailing list