rabbitizer/setup.py

26 lines
615 B
Python
Raw Normal View History

2022-06-04 16:28:51 +00:00
# SPDX-FileCopyrightText: © 2022 Decompollaborate
# SPDX-License-Identifier: MIT
2022-06-06 21:14:17 +00:00
from setuptools import setup, Extension
from pathlib import Path
2022-06-04 15:19:03 +00:00
bindingsPath = Path("rabbitizer")
srcPath = Path("src")
sourcesList = [str(x) for x in bindingsPath.glob("**/*.c")] + [str(x) for x in srcPath.glob("**/*.c")]
2022-06-04 15:19:03 +00:00
setup(
ext_modules=[
Extension(
name="rabbitizer",
sources=sourcesList,
2022-06-09 16:06:49 +00:00
include_dirs=["include", "rabbitizer"],
2022-06-05 17:19:45 +00:00
extra_compile_args = [
2022-06-05 23:03:20 +00:00
"-std=c11",
"-Wall",
2022-06-06 05:59:38 +00:00
"-g",
2022-06-05 17:19:45 +00:00
],
2022-06-04 15:19:03 +00:00
),
],
)