mirror of
https://github.com/google/liblc3.git
synced 2026-04-18 05:35:31 +00:00
The meson build system has builtin support for python packaging, and unlike hatchling it is spec-compliant. Additionally, meson is already responsible for building the shared library itself, which the python build backend can then distribute inside the wheel. This allows shipping a wheel that can find its own liblc3.so via ctypes and doesn't require passing paths to the library around, nor to install both separately and hope that this works.
20 lines
399 B
TOML
20 lines
399 B
TOML
[build-system]
|
|
requires = ["meson-python"]
|
|
build-backend = "mesonpy"
|
|
|
|
[project]
|
|
name = "lc3"
|
|
version = "0.0.1"
|
|
license = { text="Apache-2.0" }
|
|
authors = [
|
|
{ name="Antoine Soulier", email="asoulier@google.com" },
|
|
]
|
|
description = "LC3 Codec library wrapper"
|
|
requires-python = ">=3.10"
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/google/liblc3"
|
|
|
|
[tool.meson-python.args]
|
|
setup = ['-Dpython=true']
|