# Clang Build Extension
[![Gitter](https://img.shields.io/gitter/room/karellen/Lobby?logo=gitter)](https://app.gitter.im/#/room/#karellen_Lobby:gitter.im)
[![Build Status](https://img.shields.io/github/actions/workflow/status/karellen/clang-build-ext/build.yml?branch=master)](https://github.com/karellen/clang-build-ext/actions/workflows/build.yml)
[![Coverage Status](https://img.shields.io/coveralls/github/karellen/clang-build-ext/master?logo=coveralls)](https://coveralls.io/r/karellen/clang-build-ext?branch=master)
[![Clang Build Ext Version](https://img.shields.io/pypi/v/clang-build-ext?logo=pypi)](https://pypi.org/project/clang-build-ext/)
[![Clang Build Ext Python Versions](https://img.shields.io/pypi/pyversions/clang-build-ext?logo=pypi)](https://pypi.org/project/clang-build-ext/)
[![Clang Build Ext Downloads Per Day](https://img.shields.io/pypi/dd/clang-build-ext?logo=pypi)](https://pypistats.org/packages/clang-build-ext)
[![Clang Build Ext Downloads Per Week](https://img.shields.io/pypi/dw/clang-build-ext?logo=pypi)](https://pypistats.org/packages/clang-build-ext)
[![Clang Build Ext Downloads Per Month](https://img.shields.io/pypi/dm/clang-build-ext?logo=pypi)](https://pypistats.org/packages/clang-build-ext)
The `clang-build-ext` extension builds Python extensions using a Clang compiler stack.
Either system LLVM/Clang or `karellen-llvm-clang` package can be used.
Beyond compiler the additional functionality is currently undocumented.
## How to Use
Add the following to the `setup.py` script:
```python
from setuptools import setup
from karellen.clang_build_ext import ClangBuildExt, ClangBuildClib
...
setup(
...,
cmdclass={"build_ext": ClangBuildExt,
"build_clib": ClangBuildClib},)
)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/karellen/clang-build-ext",
"name": "clang-build-ext",
"maintainer": "Arcadiy Ivanov",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "arcadiy@karellen.co",
"keywords": "setuptools extension cpythonclang c cpp cxx c++ compile",
"author": "Karellen, Inc.",
"author_email": "supervisor@karellen.co",
"download_url": "https://files.pythonhosted.org/packages/5a/c1/7524c96fcd5f78594f017c5c5adb86b536534af074fdb700d8966f5c9faf/clang_build_ext-0.0.2.tar.gz",
"platform": null,
"description": "# Clang Build Extension\n\n[![Gitter](https://img.shields.io/gitter/room/karellen/Lobby?logo=gitter)](https://app.gitter.im/#/room/#karellen_Lobby:gitter.im)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/karellen/clang-build-ext/build.yml?branch=master)](https://github.com/karellen/clang-build-ext/actions/workflows/build.yml)\n[![Coverage Status](https://img.shields.io/coveralls/github/karellen/clang-build-ext/master?logo=coveralls)](https://coveralls.io/r/karellen/clang-build-ext?branch=master)\n\n[![Clang Build Ext Version](https://img.shields.io/pypi/v/clang-build-ext?logo=pypi)](https://pypi.org/project/clang-build-ext/)\n[![Clang Build Ext Python Versions](https://img.shields.io/pypi/pyversions/clang-build-ext?logo=pypi)](https://pypi.org/project/clang-build-ext/)\n\n[![Clang Build Ext Downloads Per Day](https://img.shields.io/pypi/dd/clang-build-ext?logo=pypi)](https://pypistats.org/packages/clang-build-ext)\n[![Clang Build Ext Downloads Per Week](https://img.shields.io/pypi/dw/clang-build-ext?logo=pypi)](https://pypistats.org/packages/clang-build-ext)\n[![Clang Build Ext Downloads Per Month](https://img.shields.io/pypi/dm/clang-build-ext?logo=pypi)](https://pypistats.org/packages/clang-build-ext)\n\nThe `clang-build-ext` extension builds Python extensions using a Clang compiler stack.\nEither system LLVM/Clang or `karellen-llvm-clang` package can be used.\n\nBeyond compiler the additional functionality is currently undocumented.\n\n## How to Use\n\nAdd the following to the `setup.py` script:\n\n```python \nfrom setuptools import setup\nfrom karellen.clang_build_ext import ClangBuildExt, ClangBuildClib\n\n...\n\nsetup(\n..., \ncmdclass={\"build_ext\": ClangBuildExt,\n \"build_clib\": ClangBuildClib},)\n)\n\n```\n",
"bugtrack_url": null,
"license": "Apache License, Version 2.0",
"summary": "Clang-based extension builder",
"version": "0.0.2",
"project_urls": {
"Bug Tracker": "https://github.com/karellen/clang-build-ext/issues",
"Documentation": "https://github.com/karellen/clang-build-ext/",
"Homepage": "https://github.com/karellen/clang-build-ext",
"Source Code": "https://github.com/karellen/clang-build-ext/"
},
"split_keywords": [
"setuptools",
"extension",
"cpythonclang",
"c",
"cpp",
"cxx",
"c++",
"compile"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7ed123c2540b4cb9f19cc33f89e6c57139a72eda4c05472b49acefc0563a294a",
"md5": "d84ef183ae6f959754f10e67e27d88f6",
"sha256": "9402510b8c563c002ca73355b68e12ebab5eede98e83561bbd1c3e1b31686c94"
},
"downloads": -1,
"filename": "clang_build_ext-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d84ef183ae6f959754f10e67e27d88f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 6627,
"upload_time": "2023-10-23T08:55:25",
"upload_time_iso_8601": "2023-10-23T08:55:25.047697Z",
"url": "https://files.pythonhosted.org/packages/7e/d1/23c2540b4cb9f19cc33f89e6c57139a72eda4c05472b49acefc0563a294a/clang_build_ext-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5ac17524c96fcd5f78594f017c5c5adb86b536534af074fdb700d8966f5c9faf",
"md5": "4635023e4778d021704d9540da828112",
"sha256": "9bf0b478d0c2db68350735277bfb4030b03c7d09224f10a2533c6c739c1520d3"
},
"downloads": -1,
"filename": "clang_build_ext-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "4635023e4778d021704d9540da828112",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 10555,
"upload_time": "2023-10-23T08:55:26",
"upload_time_iso_8601": "2023-10-23T08:55:26.226473Z",
"url": "https://files.pythonhosted.org/packages/5a/c1/7524c96fcd5f78594f017c5c5adb86b536534af074fdb700d8966f5c9faf/clang_build_ext-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-23 08:55:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "karellen",
"github_project": "clang-build-ext",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "clang-build-ext"
}