mirror of
https://github.com/tweag/nickel.git
synced 2024-10-06 08:07:37 +03:00
aa4bb20b3e
* Add linker directive for *-darwin to fix PyO3 Without these flags I get linking errors like this when building from nixpkgs: = note: Undefined symbols for architecture arm64: "_PyExc_ConnectionResetError", referenced from: pyo3::type_object::PyTypeInfo::type_object::hd73bc9c256c52717 in libpyo3-c59aeb8b74bb57e0.rlib(pyo3-c59aeb8b74bb57e0.pyo3.e60578ba-cgu.0.rcgu.o) See: https://pyo3.rs/main/building_and_distribution#macos * Move from cargo `config.toml` options to a build script for pyckel * Use the same revision of tree-sitter-nickel as topiary does --------- Co-authored-by: Viktor Kleen <viktor.kleen@tweag.io> |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml | ||
pyproject.toml | ||
README.md |
pyckel
Python bindings to use Nickel.
Install
pip install .
Use
import pyckel
result = pyckel.run("let x = 1 in { y = x + 2 }")
print(result)
# {
# "y": 3
# }