Skip to content

Compiling on macos-14 (arm64) cp39 result in Unable to determine extension suffix. Try manually setting PY_BUILD_EXT_SUFFIX. #24

Closed
@laggykiller

Description

@laggykiller

When compiling a nanobind project with py-build-cmake, I encountered Unable to determine extension suffix. Try manually setting PY_BUILD_EXT_SUFFIX.. Note that my project is using QueryPythonForNanobind.cmake as provided in the (nanobind example of this project)[https://github.com/tttapa/py-build-cmake/blob/rework-0.2.0/examples/nanobind-project/cmake/QueryPythonForNanobind.cmake].

  • This only occurs on macos-14, which is arm64 macOS github runner. This problem does not occur on macos-11 and macos-12, which are x86_64 macOS github runner.
  • This problem occurs on cp39, does not occur on cp38.
  • I am able to reproduce this bug both on 0.2.0a8 and 0.2.0a12.

Project where I discover this problem: https://github.com/laggykiller/apngasm-python/tree/stubgen-official
GitHub action log: https://github.com/laggykiller/apngasm-python/actions/runs/8062229801/job/22021550265#step:4:2210

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions