Don't assume options has a config_settings attribute
@@ -325,7 +325,7 @@ class RequirementCommand(IndexGroupCommand):
install_req_from_req_string,
isolated=options.isolated_mode,
use_pep517=use_pep517,
- config_settings=options.config_settings,
+ config_settings=getattr(options, "config_settings", None),
)
suppress_build_failures = cls.determine_build_failure_suppression(options)
resolver_variant = cls.determine_resolver_variant(options)
@@ -398,7 +398,7 @@ class RequirementCommand(IndexGroupCommand):
isolated=options.isolated_mode,
use_pep517=options.use_pep517,
user_supplied=True,
- config_settings=options.config_settings,
+ config_settings=getattr(options, "config_settings", None),
)
requirements.append(req_to_add)
@@ -408,7 +408,7 @@ class RequirementCommand(IndexGroupCommand):
user_supplied=True,
isolated=options.isolated_mode,
use_pep517=options.use_pep517,
- config_settings=options.config_settings,
+ config_settings=getattr(options, "config_settings", None),
)
requirements.append(req_to_add)
