You can override unwanted flags in setup.py by modifying extra_compile_args or using a custom build class. Did something similar while tweaking a 3 patti project’s build and it worked fine.