Justin Traglia fd029a7d00
Fix python bindings on macOS (#117)
* Fix python bindings on macOS

* Update workflow

* Remove unnecessary Makefile vars

* Add src dir to include dirs

* Fix phony
2023-02-07 22:13:54 +00:00

19 lines
547 B
Python

from distutils.core import setup, Extension
def main():
setup(
name="ckzg",
version="1.0.0",
description="Python interface for C-KZG-4844",
ext_modules=[
Extension(
"ckzg",
sources=["ckzg.c", "../../src/c_kzg_4844.c"],
include_dirs=["../../inc", "../../src"],
define_macros=[("FIELD_ELEMENTS_PER_BLOB", "4096")],
library_dirs=["../../lib"],
libraries=["blst"])])
if __name__ == "__main__":
main()