From c4425f0f2f29fa6bf759a8e2f74c895a5a23ace7 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 6 Sep 2024 11:24:56 +0200 Subject: [PATCH] meson: switch from .egg-info to .dist-info See https://packaging.python.org/en/latest/specifications/recording-installed-packages/#the-dist-info-directory --- PKG-INFO.in => METADATA.in | 0 meson.build | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename PKG-INFO.in => METADATA.in (100%) diff --git a/PKG-INFO.in b/METADATA.in similarity index 100% rename from PKG-INFO.in rename to METADATA.in diff --git a/meson.build b/meson.build index aba0514..9ff0aeb 100644 --- a/meson.build +++ b/meson.build @@ -119,10 +119,10 @@ pyext_c_args = [ if not for_wheel pkginfo_conf = configuration_data() pkginfo_conf.set('VERSION', pycairo_version) - configure_file(input : 'PKG-INFO.in', - output : 'pycairo-@0@.egg-info'.format(pycairo_version), + configure_file(input : 'METADATA.in', + output : 'METADATA', configuration : pkginfo_conf, - install_dir : python.get_install_dir()) + install_dir : python.get_install_dir() / 'pycairo-@0@.dist-info'.format(pycairo_version)) endif subdir('cairo')