From 9a99cbe00a985494a273db5af2c809892972f81c Mon Sep 17 00:00:00 2001 From: Jeff Glass Date: Fri, 19 Apr 2024 08:45:42 -0500 Subject: [PATCH] Include `CONFIG_ARGS` in Metadata (#180) --- pyperf/_collect_metadata.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyperf/_collect_metadata.py b/pyperf/_collect_metadata.py index e69bc8ea..33481502 100644 --- a/pyperf/_collect_metadata.py +++ b/pyperf/_collect_metadata.py @@ -111,6 +111,11 @@ def collect_python_metadata(metadata): cflags = normalize_text(cflags) metadata['python_cflags'] = cflags + 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: import gc