cpp_python_extension(
    name = "bser",
    srcs = ["bser.c"],
    base_module = "pywatchman",
    # https://osdir.com/ml/python.cython.devel/2008-04/msg00080.html
    # This triggers for us calling Py_INCREF(Py_True)
    compiler_flags = ["-fno-strict-aliasing"],
)

python_library(
    name = "pywatchman",
    srcs = glob(["*.py"]),
    base_module = "pywatchman",
    deps = [":bser"],
)
