mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-21 13:03:53 +08:00
* library cleanup * remove fastcv * Fix build step * bump cereal * bump cereal * Install capnp * bump * no docker cache * Update installation instructions * Needs sudo * Can we sudo? * Cache was not the problem * remove static libraries from boardd install script * Update setup script * Remove import * No capnp install in lgtm * Fix dockerfile
30 lines
782 B
Python
30 lines
782 B
Python
import subprocess
|
|
from distutils.core import Extension, setup
|
|
|
|
from Cython.Build import cythonize
|
|
|
|
from common.cython_hacks import BuildExtWithoutPlatformSuffix
|
|
from common.basedir import BASEDIR
|
|
import os
|
|
|
|
PHONELIBS = os.path.join(BASEDIR, 'phonelibs')
|
|
|
|
ARCH = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
|
|
libraries = ['can_list_to_can_capnp', 'capnp', 'kj']
|
|
|
|
setup(name='Boardd API Implementation',
|
|
cmdclass={'build_ext': BuildExtWithoutPlatformSuffix},
|
|
ext_modules=cythonize(
|
|
Extension(
|
|
"boardd_api_impl",
|
|
libraries=libraries,
|
|
library_dirs=[
|
|
'./',
|
|
],
|
|
sources=['boardd_api_impl.pyx'],
|
|
language="c++",
|
|
extra_compile_args=["-std=c++11"],
|
|
)
|
|
)
|
|
)
|