rabbitizer/setup.py
Ethan Roseman c81cc49a65
cibuildwheel (ci/cd) (#1)
* cibuildwheel attempt

* fixes

* skip pypy

* re-enable pypy

* try no pypy 3.7

* try again

* try winders

* remove snibblets
2022-06-10 14:50:23 -04:00

41 lines
2.1 KiB
Python

# SPDX-FileCopyrightText: © 2022 Decompollaborate
# SPDX-License-Identifier: MIT
from setuptools import setup, Extension
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
ext_modules=[
Extension(
name="rabbitizer",
sources=["rabbitizer/rabbitizer_module.c", "rabbitizer/rabbitizer_submodule_Utils.c", "rabbitizer/rabbitizer_type_Instruction.c", "rabbitizer/rabbitizer_global_config.c",
"rabbitizer/enums/rabbitizer_type_Enum.c", "rabbitizer/enums/enums_utils.c", "rabbitizer/enums/rabbitizer_enum_InstrCategory.c", "rabbitizer/enums/rabbitizer_enum_InstrId.c", "rabbitizer/enums/rabbitizer_enum_Abi.c",
"src/instructions/RabbitizerInstruction/RabbitizerInstruction_Disassemble.c", "src/instructions/RabbitizerInstruction/RabbitizerInstruction_ProcessUniqueId.c", "src/instructions/RabbitizerInstruction/RabbitizerInstruction.c", "src/instructions/RabbitizerInstruction/RabbitizerInstruction_Examination.c",
"src/instructions/RabbitizerInstructionRsp/RabbitizerInstructionRsp.c", "src/instructions/RabbitizerInstructionRsp/RabbitizerInstructionRsp_ProcessUniqueId.c",
"src/instructions/RabbitizerInstrDescriptor.c", "src/instructions/RabbitizerInstrId.c", "src/instructions/RabbitizerRegister.c",
"src/common/Utils.c", "src/common/RabbitizerConfig.c"],
include_dirs=["include", "rabbitizer"],
extra_compile_args = [
"-std=c11",
"-Wall",
#"-Wextra",
# "-Wpedantic", # binary constants :s
#"-Wno-cast-function-type",
#"-Werror=implicit-function-declaration",
#"-Werror=implicit-function-declaration",
#"-Werror=incompatible-pointer-types",
#"-Werror=vla",
#"-Werror=switch",
#"-Werror=implicit-fallthrough",
#"-Werror=unused-function",
#"-Werror=unused-parameter",
#"-Werror=shadow",
# "-Werror",
"-g",
],
),
],
)