1import os
2
3from distutils.core import Extension
4from distutils.core import setup
5
6
7# =====
8if __name__ == "__main__":
9    setup(
10        name="ustreamer",
11        version="4.10",
12        description="uStreamer tools",
13        author="Maxim Devaev",
14        author_email="mdevaev@gmail.com",
15        url="https://github.com/pikvm/ustreamer",
16        ext_modules=[
17            Extension(
18                "ustreamer",
19                libraries=["rt", "m", "pthread"],
20                undef_macros=["NDEBUG"],
21                sources=["src/" + name for name in os.listdir("src") if name.endswith(".c")],
22                depends=["src/" + name for name in os.listdir("src") if name.endswith(".h")],
23            ),
24        ],
25    )
26