CMake support files for ASN.1 C extension bindings
Project description
ASN.1c Python Bndings Support Files
asn1cpython-support is a small Python helper package that provides build-time
support utilities for Python packages using the modified
asn1c compiler to generate C
sources from ASN.1 specifications. Documentation is here:
matrixeditor.github.io/asn1c-bindings.
Its primary purpose is to bridge Python packaging tools (such as scikit-build-core) with the asn1c-bindings CMake package, ensuring that ASN.1 source files can be compiled into Python extension modules seamlessly.
Usage in CMake
When building a Python extension module that uses ASN.1 specifications, you can retrieve the CMake package path like this:
execute_process(
COMMAND "${Python_EXECUTABLE}" -m asn1cpython_support --cmake-dir
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE asn1c-bindings_ROOT
)
find_package(asn1c-bindings CONFIG REQUIRED)
Installation
pip install asn1cpython-support
Example
A typical pyproject.toml snippet using this package with scikit-build-core:
[build-system]
# This requirement will make all required files available at build time
requires = ["scikit-build-core~=0.9.0", "asn1cpython-support"]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
cmake.minimum-version = "3.15"
# ...
License
MIT License — see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asn1cpython_support-0.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: asn1cpython_support-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4b38223e4c7efa76c23975456228dd1f261953d16bd7b5bca1bc38de76da8fa
|
|
| MD5 |
cc2b7a15e8e628ab65fc489bb11fb9cd
|
|
| BLAKE2b-256 |
1eb07f3b1bcb4d6e251865a88a11328f1fbec8d402af86afde858de0a0bd55e0
|