2020-07-16 14:59:32 -06:00
|
|
|
Import('env', 'cython_dependencies')
|
2020-01-17 11:28:44 -07:00
|
|
|
|
2020-07-16 14:59:32 -06:00
|
|
|
# Build cython clock module
|
|
|
|
env.Command(['common_pyx.so', 'clock.cpp'],
|
|
|
|
cython_dependencies + ['common_pyx_setup.py', 'clock.pyx'],
|
|
|
|
"cd common && python3 common_pyx_setup.py build_ext --inplace")
|
2020-10-13 08:23:23 -06:00
|
|
|
|
|
|
|
# Build cython params module
|
|
|
|
env.Command(['params_pyx.so', 'params_pyx.cpp'],
|
|
|
|
cython_dependencies + [
|
|
|
|
'params_pyx_setup.py', 'params_pyx.pyx', 'params_pxd.pxd',
|
|
|
|
'#selfdrive/common/params.cc', '#selfdrive/common/params.h',
|
|
|
|
'#selfdrive/common/util.c', '#selfdrive/common/util.h'],
|
|
|
|
"cd common && python3 params_pyx_setup.py build_ext --inplace")
|