Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asn1cpython_support-0.0.2-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file asn1cpython_support-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for asn1cpython_support-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c4b38223e4c7efa76c23975456228dd1f261953d16bd7b5bca1bc38de76da8fa
MD5 cc2b7a15e8e628ab65fc489bb11fb9cd
BLAKE2b-256 1eb07f3b1bcb4d6e251865a88a11328f1fbec8d402af86afde858de0a0bd55e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page