* [PR PATCH] 04-create-xbps-medatada-scripts.sh: autogenerate pycompile_modules
@ 2019-10-08 19:18 voidlinux-github
0 siblings, 0 replies; only message in thread
From: voidlinux-github @ 2019-10-08 19:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
There is a new pull request by Chocimier against master on the void-packages repository
https://github.com/Chocimier/void-packages-org pycompile_modules
https://github.com/void-linux/void-packages/pull/15265
04-create-xbps-medatada-scripts.sh: autogenerate pycompile_modules
Setting pycompile_module in template will be no longer necessary.
A patch file from https://github.com/void-linux/void-packages/pull/15265.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pycompile_modules-15265.patch --]
[-- Type: text/x-diff, Size: 1158 bytes --]
From 8e78eabd5c27082ee05835f50feb3877c27020f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Tue, 8 Oct 2019 21:16:10 +0200
Subject: [PATCH] 04-create-xbps-medatada-scripts.sh: autogenerate
pycompile_modules
---
common/hooks/post-install/04-create-xbps-metadata-scripts.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh
index d2a89f66679..8b015e10e09 100644
--- a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh
+++ b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh
@@ -260,6 +260,9 @@ _EOF
#
if [ -d ${PKGDESTDIR}/usr/lib/python* ]; then
pycompile_version="$(find ${PKGDESTDIR}/usr/lib/python* -prune -type d | grep -o '[[:digit:]]\.[[:digit:]]$')"
+ if [ -z "${pycompile_module}" ]; then
+ pycompile_module="$(find ${PKGDESTDIR}/usr/lib/python*/site-packages -mindepth 1 -maxdepth 1 | grep -Eo '[^/]+$' | grep -v -e egg-info -e dist-info -e '.so$' | tr '\n' ' ')"
+ fi
fi
if [ -n "${pycompile_dirs}" -o -n "${pycompile_module}" ]; then
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-08 19:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 19:18 [PR PATCH] 04-create-xbps-medatada-scripts.sh: autogenerate pycompile_modules voidlinux-github
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).