Skip to content

Commit

Permalink
fix(setuptools): avoid instantiating build too soon (#443)
Browse files Browse the repository at this point in the history
Fixes #426.

Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Jul 29, 2023
1 parent 0813be0 commit 4ae0434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scikit_build_core/setuptools/build_cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def __len__(self) -> int:

def _prepare_build_cmake_command(dist: Distribution) -> None:
# Prepare new build_cmake command and make sure build calls it
build = dist.get_command_obj("build")
build = dist.get_command_class("build")
assert build is not None
if "build_cmake" not in {x for x, _ in build.sub_commands}:
build.sub_commands.append(
Expand Down

0 comments on commit 4ae0434

Please sign in to comment.