mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 01:53:57 +08:00
* compile flag for cython
* fix more setups
* bump cereal
* reenable mac build
* don't let that fail the build
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e0bb6a7ce
21 lines
590 B
Python
21 lines
590 B
Python
from distutils.core import Extension, setup # pylint: disable=import-error,no-name-in-module
|
|
from Cython.Build import cythonize
|
|
|
|
from common.cython_hacks import BuildExtWithoutPlatformSuffix
|
|
|
|
sourcefiles = ['clock.pyx']
|
|
extra_compile_args = ["-std=c++11", "-Wno-nullability-completeness"]
|
|
|
|
setup(name='Common',
|
|
cmdclass={'build_ext': BuildExtWithoutPlatformSuffix},
|
|
ext_modules=cythonize(
|
|
Extension(
|
|
"common_pyx",
|
|
language="c++",
|
|
sources=sourcefiles,
|
|
extra_compile_args=extra_compile_args,
|
|
)
|
|
),
|
|
nthreads=4,
|
|
)
|