{"id":19001310,"url":"https://github.com/oneflow-inc/pybind11_print_stack","last_synced_at":"2026-07-14T18:31:59.259Z","repository":{"id":36980011,"uuid":"398696926","full_name":"Oneflow-Inc/pybind11_print_stack","owner":"Oneflow-Inc","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-17T03:04:08.000Z","size":20,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-17T05:46:02.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oneflow-Inc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-22T02:27:20.000Z","updated_at":"2021-08-22T02:27:24.000Z","dependencies_parsed_at":"2023-02-10T07:31:01.459Z","dependency_job_id":null,"html_url":"https://github.com/Oneflow-Inc/pybind11_print_stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"pybind/cmake_example","purl":"pkg:github/Oneflow-Inc/pybind11_print_stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneflow-Inc%2Fpybind11_print_stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneflow-Inc%2Fpybind11_print_stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneflow-Inc%2Fpybind11_print_stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneflow-Inc%2Fpybind11_print_stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oneflow-Inc","download_url":"https://codeload.github.com/Oneflow-Inc/pybind11_print_stack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneflow-Inc%2Fpybind11_print_stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35474801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T18:10:43.218Z","updated_at":"2026-07-14T18:31:59.244Z","avatar_url":"https://github.com/Oneflow-Inc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmake_example for pybind11\n\n[![Gitter][gitter-badge]][gitter-link]\n\n|      CI              | status |\n|----------------------|--------|\n| MSVC 2015            | [![AppVeyor][appveyor-badge]][appveyor-link] |\n| conda.recipe         | [![Conda Actions Status][actions-conda-badge]][actions-conda-link] |\n| pip builds           | [![Pip Actions Status][actions-pip-badge]][actions-pip-link] |\n| [`cibuildwheel`][]   | [![Wheels Actions Status][actions-wheels-badge]][actions-wheels-link] |\n\n[gitter-badge]:            https://badges.gitter.im/pybind/Lobby.svg\n[gitter-link]:             https://gitter.im/pybind/Lobby\n[actions-badge]:           https://github.com/pybind/cmake_example/workflows/Tests/badge.svg\n[actions-conda-link]:      https://github.com/pybind/cmake_example/actions?query=workflow%3A%22Conda\n[actions-conda-badge]:     https://github.com/pybind/cmake_example/workflows/Conda/badge.svg\n[actions-pip-link]:        https://github.com/pybind/cmake_example/actions?query=workflow%3A%22Pip\n[actions-pip-badge]:       https://github.com/pybind/cmake_example/workflows/Pip/badge.svg\n[actions-wheels-link]:     https://github.com/pybind/cmake_example/actions?query=workflow%3AWheels\n[actions-wheels-badge]:    https://github.com/pybind/cmake_example/workflows/Wheels/badge.svg\n[appveyor-link]:           https://ci.appveyor.com/project/dean0x7d/cmake-example/branch/master\n[appveyor-badge]:          https://ci.appveyor.com/api/projects/status/57nnxfm4subeug43/branch/master?svg=true\n\nAn example [pybind11](https://github.com/pybind/pybind11) module built with a\nCMake-based build system. This is useful for C++ codebases that have an\nexisting CMake project structure. This is in many cases superseded by\n[`scikit_build_example`](https://github.com/pybind/scikit_build_example), which uses\n[scikit-build][], a tool from the makers of CMake designed to allow Python\npackages to be driven from CMake. However, there are still cases where you\nmight want full control over the CMake run; and both of these approaches have\nsome trade-offs not present in a pure setuptools build (see\n[`python_example`](https://github.com/pybind/python_example))\n\n## Prerequisites\n\n**On Unix (Linux, OS X)**\n\n* A compiler with C++11 support\n* CMake \u003e= 3.4 or Pip 10+\n* Ninja or Pip 10+\n\n**On Windows**\n\n* Visual Studio 2015 or newer (required for all Python versions, see notes below)\n* CMake \u003e= 3.8 (3.8 was the first version to support VS 2015) or Pip 10+\n\n\n## Installation\n\nJust clone this repository and pip install. Note the `--recursive` option which is\nneeded for the pybind11 submodule:\n\n```bash\ngit clone --recursive https://github.com/pybind/cmake_example.git\npip install ./cmake_example\n```\n\nWith the `setup.py` file included in this example, the `pip install` command will\ninvoke CMake and build the pybind11 module as specified in `CMakeLists.txt`.\n\n\n## Special notes for Windows\n\n**Compiler requirements**\n\nPybind11 requires a C++11 compliant compiler, i.e Visual Studio 2015 on Windows.\nThis applies to all Python versions, including 2.7. Unlike regular C extension\nmodules, it's perfectly fine to compile a pybind11 module with a VS version newer\nthan the target Python's VS version. See the [FAQ] for more details.\n\n**Runtime requirements**\n\nThe Visual C++ 2015 redistributable packages are a runtime requirement for this\nproject. It can be found [here][vs2015_runtime]. If you use the Anaconda Python\ndistribution, you can add `vs2015_runtime` as a platform-dependent runtime\nrequirement for you package: see the `conda.recipe/meta.yaml` file in this example.\n\n\n## Building the documentation\n\nDocumentation for the example project is generated using Sphinx. Sphinx has the\nability to automatically inspect the signatures and documentation strings in\nthe extension module to generate beautiful documentation in a variety formats.\nThe following command generates HTML-based reference documentation; for other\nformats please refer to the Sphinx manual:\n\n - `cd cmake_example/docs`\n - `make html`\n\n\n## License\n\nPybind11 is provided under a BSD-style license that can be found in the LICENSE\nfile. By using, distributing, or contributing to this project, you agree to the\nterms and conditions of this license.\n\n\n## Test call\n\n```python\nimport cmake_example\ncmake_example.add(1, 2)\n```\n\n[`cibuildwheel`]:          https://cibuildwheel.readthedocs.io\n[FAQ]: http://pybind11.rtfd.io/en/latest/faq.html#working-with-ancient-visual-studio-2009-builds-on-windows\n[vs2015_runtime]: https://www.microsoft.com/en-us/download/details.aspx?id=48145\n[scikit-build]: https://scikit-build.readthedocs.io/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneflow-inc%2Fpybind11_print_stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneflow-inc%2Fpybind11_print_stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneflow-inc%2Fpybind11_print_stack/lists"}