mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-10 10:15:41 +00:00
fd029a7d00
* Fix python bindings on macOS * Update workflow * Remove unnecessary Makefile vars * Add src dir to include dirs * Fix phony
19 lines
547 B
Python
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()
|