Skip to content

Request for Example: Linking Python Module with Shared Library using scikit-build-core and pybind11/nanobind #1034

Open
@MohammadRaziei

Description

@MohammadRaziei

Hi scikit-build-core team! I'm working on a project where I need to connect my Python code with a shared library (like my_shared.so), and I'd love to use scikit-build-core for this, along with either pybind11 or nanobind (I prefer nanobind) for the bindings.

I've been looking through the documentation, but a clear example showing this specific workflow would be really helpful. It would be great to see how to set up a project with scikit-build-core, build a simple shared library with C/C++ functions, generate Python bindings, configure the linking process, and finally, use those functions in a Python script.

My goal is to bring a custom C/C++ library into my Python project, and I think scikit-build-core with pybind11 or nanobind is the perfect tool for the job. An example would make it much easier to understand and use this approach.

Having this example would be a huge help to the scikit-build-core community, especially for those who are new to linking with shared libraries. It would simplify things and enable developers to use their existing C/C++ code in Python projects more effectively.

Thank you for considering this! A practical example would be a valuable addition to the documentation, showing the real-world power of scikit-build-core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions