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,