Skip to main content

Hatchling plugin with utilities for native libraries

Project description

hatch-nativelib

Hatchling plugin with utilities for native libraries.

pkgconf dependency generation

By adding [[tool.hatch.build.hooks.nativelib.pcfile]] to your hatchling project's pyproject.toml, this plugin will do a couple of things:

  • Automatically generate the .pc file from the pyproject.toml config section
  • Register the .pc file so that pkgconf-pypi will find it and things such as meson can use it for dependency resolution
    • Also sets PKG_CONFIG_PATH so that other hatchling plugins can resolve it
  • Generates a python module that uses ctypes to load the library when imported. The library can be found via pkgconf, in the variable pkgconf_pypi_initpy

See config for pyproject.toml configuration.

Project details


Download files

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

Source Distribution

hatch_nativelib-0.2.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

hatch_nativelib-0.2.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file hatch_nativelib-0.2.1.tar.gz.

File metadata

  • Download URL: hatch_nativelib-0.2.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hatch_nativelib-0.2.1.tar.gz
Algorithm Hash digest
SHA256 97ea1db09ee427fb894f749ef249af1ff6e348f9b30b8c21622904ed45347a76
MD5 28d02811401878cc5976c20385ea2d91
BLAKE2b-256 77cf698562db6407be4bd5ce0d646c4be71877a30db9d4c23ebcce1f8edf8b37

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_nativelib-0.2.1.tar.gz:

Publisher: dist.yml on robotpy/hatch-nativelib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hatch_nativelib-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hatch_nativelib-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae70d501f242c54d185dccaf1f5fb23c7863b4f49414554af5dce4f14f2c451
MD5 43281ed8ecc76ad4bf0abf4547f43570
BLAKE2b-256 8a666d2f0ad080e68099f610f6d6c48003305d978e623eb84c6e4f85563f122d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_nativelib-0.2.1-py3-none-any.whl:

Publisher: dist.yml on robotpy/hatch-nativelib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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