1
1
mirror of https://github.com/tweag/nickel.git synced 2024-08-16 23:20:38 +03:00
nickel/pyckel
Jeremy Parker aa4bb20b3e
Add linker directive for *-darwin to fix PyO3 (#1454)
* 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>
2023-07-31 16:16:42 +00:00
..
src Rename and move workspace crates (#1399) 2023-06-26 16:58:40 +00:00
build.rs Add linker directive for *-darwin to fix PyO3 (#1454) 2023-07-31 16:16:42 +00:00
Cargo.toml Add linker directive for *-darwin to fix PyO3 (#1454) 2023-07-31 16:16:42 +00:00
pyproject.toml Move Python bindings to its own crate pyckel 2023-01-16 16:38:24 +01:00
README.md Update pyckel/README.md 2023-01-16 16:38:24 +01:00

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
# }