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: