Skip to content

Commit dd7671e

Browse files
authored
chore: show platform info (scikit-build#1094)
1 parent abbba59 commit dd7671e

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

src/scikit_build_core/build/wheel.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import dataclasses
44
import os
5+
import platform
56
import shutil
7+
import sys
68
import sysconfig
79
import tempfile
810
from collections.abc import Mapping
@@ -259,6 +261,12 @@ def _build_wheel_impl_impl(
259261
*cmake_msg,
260262
f"{{red}}({state})",
261263
)
264+
logger.info(
265+
"Implementation: {} {} on {}",
266+
sys.implementation.name,
267+
sys.platform,
268+
platform.machine(),
269+
)
262270

263271
with tempfile.TemporaryDirectory() as tmpdir:
264272
build_tmp_folder = Path(tmpdir)

src/scikit_build_core/settings/skbuild_overrides.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from ..errors import CMakeNotFoundError
1919
from ..resources import resources
2020

21-
__all__ = ["process_overides", "regex_match"]
21+
__all__ = ["process_overrides", "regex_match"]
2222

2323

2424
def __dir__() -> list[str]:
@@ -257,7 +257,7 @@ def inherit_join(
257257
raise TypeError(msg)
258258

259259

260-
def process_overides(
260+
def process_overrides(
261261
tool_skb: dict[str, Any],
262262
*,
263263
state: Literal["sdist", "wheel", "editable", "metadata_wheel", "metadata_editable"],

src/scikit_build_core/settings/skbuild_read_settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .auto_cmake_version import find_min_cmake_version
1818
from .auto_requires import get_min_requires
1919
from .skbuild_model import CMakeSettings, NinjaSettings, ScikitBuildSettings
20-
from .skbuild_overrides import process_overides
20+
from .skbuild_overrides import process_overrides
2121
from .sources import ConfSource, EnvSource, SourceChain, TOMLSource
2222

2323
if TYPE_CHECKING:
@@ -151,7 +151,7 @@ def __init__(
151151

152152
# Handle overrides
153153
pyproject = copy.deepcopy(pyproject)
154-
self.overrides = process_overides(
154+
self.overrides = process_overrides(
155155
pyproject.get("tool", {}).get("scikit-build", {}),
156156
state=state,
157157
env=env,
@@ -188,7 +188,7 @@ def __init__(
188188

189189
if extra_settings is not None:
190190
extra_skb = copy.deepcopy(dict(extra_settings))
191-
process_overides(extra_skb, state=state, env=env, retry=retry)
191+
process_overrides(extra_skb, state=state, env=env, retry=retry)
192192
toml_srcs.insert(0, TOMLSource(settings=extra_skb))
193193

194194
prefixed = {

0 commit comments

Comments
 (0)