Name | setuptools-pybind11 JSON |
Version |
0.4.0
JSON |
| download |
home_page | None |
Summary | Setuptools extension for building pybind11 libraries with CMake |
upload_time | 2024-04-10 02:45:09 |
maintainer | None |
docs_url | None |
author | Alagyn |
requires_python | >=3.7 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# setuptools-pybind11
Setuptools extension for building pybind11 libraries with CMake
## Usage
Add setuptools-pybind11 to your `pyproject.toml`
```toml
[build-system]
requires = [
"setuptools",
"wheel",
# Use setuptools-pybind11 if you don't want to automatically install cmake
"setuptools-pybind11[cmake]"
]
# set this package as the backend
build-backend="setuptools_pybind11"
[project]
name = "example"
version = "0.1.0"
... # other project stuff
# you can define multiple modules
[tool.setuptools-pybind11.modules.example]
# defaults to this
source_dir = "."
# prefix in build directory to main binary
bin_prefix = ""
# binary dir prefixes for dependencies
dep_bin_prefixes = ["example-dep"]
# include/data directories and their name (placed under [package-name]-[version].inc/path)
inc_dirs = [["example-dep", "example-path"]]
# any additional cmake configs you need
cmake_config_options = ["-DMYCMAKE_OPTION=ON"]
cmake_build_options = ["--MyBuildOption"]
```
Build your module
`python -m build`
Raw data
{
"_id": null,
"home_page": null,
"name": "setuptools-pybind11",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Alagyn",
"author_email": null,
"download_url": null,
"platform": null,
"description": "# setuptools-pybind11\nSetuptools extension for building pybind11 libraries with CMake\n\n## Usage\nAdd setuptools-pybind11 to your `pyproject.toml`\n```toml\n[build-system]\nrequires = [\n \"setuptools\", \n \"wheel\", \n # Use setuptools-pybind11 if you don't want to automatically install cmake\n \"setuptools-pybind11[cmake]\"\n ]\n# set this package as the backend\nbuild-backend=\"setuptools_pybind11\"\n\n[project]\nname = \"example\"\nversion = \"0.1.0\"\n... # other project stuff\n\n# you can define multiple modules\n[tool.setuptools-pybind11.modules.example]\n# defaults to this\nsource_dir = \".\"\n# prefix in build directory to main binary\nbin_prefix = \"\"\n# binary dir prefixes for dependencies\ndep_bin_prefixes = [\"example-dep\"]\n# include/data directories and their name (placed under [package-name]-[version].inc/path)\ninc_dirs = [[\"example-dep\", \"example-path\"]]\n# any additional cmake configs you need\ncmake_config_options = [\"-DMYCMAKE_OPTION=ON\"]\ncmake_build_options = [\"--MyBuildOption\"]\n```\n\nBuild your module\n`python -m build`\n",
"bugtrack_url": null,
"license": null,
"summary": "Setuptools extension for building pybind11 libraries with CMake",
"version": "0.4.0",
"project_urls": {
"Bug Tracker": "https://github.com/alagyn/setuptools-pybind11/issues",
"Homepage": "https://github.com/alagyn/setuptools-pybind11"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d04ffd4af7b6a5552936adff04e03905477947659a5172410fd071b6ed67b56",
"md5": "d3f21cf6287dc8f34ebf5bfc19fb81de",
"sha256": "54a8d83f938906db0a5ae77f9082381b206b0a21bcc46e7ff7ee606b0c1c790a"
},
"downloads": -1,
"filename": "setuptools_pybind11-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d3f21cf6287dc8f34ebf5bfc19fb81de",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 6120,
"upload_time": "2024-04-10T02:45:09",
"upload_time_iso_8601": "2024-04-10T02:45:09.123512Z",
"url": "https://files.pythonhosted.org/packages/6d/04/ffd4af7b6a5552936adff04e03905477947659a5172410fd071b6ed67b56/setuptools_pybind11-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-10 02:45:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "alagyn",
"github_project": "setuptools-pybind11",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "setuptools-pybind11"
}