import sys

from setuptools import Extension, setup

if sys.platform == "win32":
    warn_flags = ["/W4"]
else:
    warn_flags = ["-Wall", "-Wextra", "-Wno-unused-parameter"]

setup(
    ext_modules=[
        Extension(
            name="hello",  # must match PyInit_hello
            sources=["hello.c"],
            extra_compile_args=warn_flags,
        ),
    ],
)
