From c4c8c14b48d1b60c48d814739dbe3628fa9b2316 Mon Sep 17 00:00:00 2001 From: Jeff Glass Date: Thu, 18 Apr 2024 12:57:30 -0500 Subject: [PATCH 1/2] Add config_args to metadata --- pyperf/_collect_metadata.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyperf/_collect_metadata.py b/pyperf/_collect_metadata.py index a0146848..968bfbaa 100644 --- a/pyperf/_collect_metadata.py +++ b/pyperf/_collect_metadata.py @@ -106,6 +106,11 @@ def collect_python_metadata(metadata): if cflags: cflags = normalize_text(cflags) metadata['python_cflags'] = cflags + + config_flags = sysconfig.get_config_var('CONFIG_ARGS') + if config_flags: + config_flags = normalize_text(config_flags) + metadata['python_config_args'] = config_flags # GC disabled? try: From ae0da9e292de907de8a3b9b47fb853708e23be6c Mon Sep 17 00:00:00 2001 From: Jeff Glass Date: Fri, 19 Apr 2024 07:09:08 -0500 Subject: [PATCH 2/2] Rename config_flags -> config_args --- pyperf/_collect_metadata.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyperf/_collect_metadata.py b/pyperf/_collect_metadata.py index 968bfbaa..edf7c80a 100644 --- a/pyperf/_collect_metadata.py +++ b/pyperf/_collect_metadata.py @@ -106,11 +106,11 @@ def collect_python_metadata(metadata): if cflags: cflags = normalize_text(cflags) metadata['python_cflags'] = cflags - - config_flags = sysconfig.get_config_var('CONFIG_ARGS') - if config_flags: - config_flags = normalize_text(config_flags) - metadata['python_config_args'] = config_flags + + config_args = sysconfig.get_config_var('CONFIG_ARGS') + if config_args: + config_args = normalize_text(config_args) + metadata['python_config_args'] = config_args # GC disabled? try: