From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F149C158041 for ; Fri, 8 Mar 2024 16:11:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0AC51E29D2; Fri, 8 Mar 2024 16:11:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DDFD1E29D2 for ; Fri, 8 Mar 2024 16:11:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B00D0335D6A for ; Fri, 8 Mar 2024 16:11:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 043DE119 for ; Fri, 8 Mar 2024 16:11:51 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1709874250.32e4a588cfd9548a28c74476d586a6b66b15bace.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: cnf/, / X-VCS-Repository: proj/portage X-VCS-Files: cnf/METADATA meson.build X-VCS-Directories: cnf/ / X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 32e4a588cfd9548a28c74476d586a6b66b15bace X-VCS-Branch: master Date: Fri, 8 Mar 2024 16:11:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d77cd1dd-d198-4f15-b342-6bc21a51527d X-Archives-Hash: 335074eb32d111e3eb6d2ceaac0babe1 commit: 32e4a588cfd9548a28c74476d586a6b66b15bace Author: Zac Medico gentoo org> AuthorDate: Fri Mar 8 05:04:10 2024 +0000 Commit: Zac Medico gentoo 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 gmail.com> Bug: https://bugs.gentoo.org/920330 Signed-off-by: Zac Medico 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,