Skip to content

Commit

Permalink
main: ensure config_settings are passed to get_requires_for_build
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard committed Jun 26, 2023
1 parent 0ab7b05 commit 44632c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _build_in_isolated_env(
# first install the build dependencies
env.install(builder.build_system_requires)
# then get the extra required dependencies from the backend (which was installed in the call above :P)
env.install(builder.get_requires_for_build(distribution))
env.install(builder.get_requires_for_build(distribution, config_settings or {}))
return builder.build(distribution, outdir, config_settings or {})


Expand All @@ -127,7 +127,7 @@ def _build_in_current_env(
builder = _ProjectBuilder(srcdir)

if not skip_dependency_check:
missing = builder.check_dependencies(distribution)
missing = builder.check_dependencies(distribution, config_settings or {})
if missing:
dependencies = ''.join('\n\t' + dep for deps in missing for dep in (deps[0], _format_dep_chain(deps[1:])) if dep)
_cprint()
Expand Down

0 comments on commit 44632c4

Please # to comment.