~amirouche/asyncio-foundationdb

ref: e24a647742c28f2e7885b444b4983c0f19c8c57a asyncio-foundationdb/build.py -rw-r--r-- 394 bytes
e24a6477Amirouche release v0.10.4 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
from cffi import FFI


ffi = FFI()
with open(os.path.join(os.path.dirname(__file__), "fdb_c.h")) as f:
    ffi.set_source("found._fdb", f.read(), libraries=["fdb_c"])


# TODO: replace fdb_c2.h with what it is, what it's useful for
with open(os.path.join(os.path.dirname(__file__), "fdb_c2.h")) as f:
    ffi.cdef(f.read())


def build(*args, **kwargs):
    ffi.compile(verbose=True)