From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: cnf/, /
Date: Fri, 8 Mar 2024 16:11:51 +0000 (UTC) [thread overview]
Message-ID: <1709874250.32e4a588cfd9548a28c74476d586a6b66b15bace.zmedico@gentoo> (raw)
commit: 32e4a588cfd9548a28c74476d586a6b66b15bace
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 8 05:04:10 2024 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Fri Mar 8 05:04:10 2024 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=32e4a588
meson.build: Install dist-info METADATA
Install dist-info METADATA for pip to resolve dependencies:
# pip freeze | grep portage
portage==3.0.63
Suggested-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Bug: https://bugs.gentoo.org/920330
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
cnf/METADATA | 3 +++
meson.build | 14 ++++++++++++++
2 files changed, 17 insertions(+)
diff --git a/cnf/METADATA b/cnf/METADATA
new file mode 100644
index 0000000000..57060b0856
--- /dev/null
+++ b/cnf/METADATA
@@ -0,0 +1,3 @@
+Metadata-Version: 2.1
+Name: portage
+Version: @VERSION@
diff --git a/meson.build b/meson.build
index e826f6ffad..b06e1f4881 100644
--- a/meson.build
+++ b/meson.build
@@ -97,6 +97,20 @@ if native_extensions
subdir('src')
endif
+if system_wide
+ METADATA = configure_file(
+ input : 'cnf/METADATA',
+ output : 'METADATA',
+ configuration : conf_data
+ )
+ install_data(
+ [
+ METADATA
+ ],
+ install_dir : py.get_install_dir() / 'portage-@0@.dist-info'.format(conf_data.get('VERSION'))
+ )
+endif
+
test(
'pytest',
py,
next reply other threads:[~2024-03-08 16:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-08 16:11 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-18 16:45 [gentoo-commits] proj/portage:master commit in: cnf/, / Mike Gilbert
2024-07-21 9:06 Sam James
2024-02-09 7:26 Sam James
2023-09-19 7:18 Sam James
2022-12-10 1:47 Sam James
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=1709874250.32e4a588cfd9548a28c74476d586a6b66b15bace.zmedico@gentoo \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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