From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] 04-create-xbps-medatada-scripts.sh: autogenerate pycompile_modules
Date: Tue, 08 Oct 2019 21:18:05 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15265@inbox.vuxu.org> (raw)
[-- 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
reply other threads:[~2019-10-08 19:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15265@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).