mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 10:03:55 +08:00
* switch to c++17
* more 17
* 1z
* use std::clamp
* Fix types in clamp
* bump submodules
* bump laika
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 339d1967cb
21 lines
560 B
Python
21 lines
560 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++1z"]
|
|
|
|
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,
|
|
),
|
|
)
|