mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
Library cleanup (#1491)
* 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 old-commit-hash: 72db8d890d04e6eb3ce652be3da9bdf23ebda510
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import subprocess
|
||||
import platform
|
||||
from distutils.core import Extension, setup
|
||||
|
||||
from Cython.Build import cythonize
|
||||
@@ -11,20 +10,7 @@ import os
|
||||
PHONELIBS = os.path.join(BASEDIR, 'phonelibs')
|
||||
|
||||
ARCH = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
|
||||
|
||||
if ARCH == "x86_64":
|
||||
if platform.system() == "Darwin":
|
||||
libraries = ['can_list_to_can_capnp', 'capnp', 'kj']
|
||||
ARCH_DIR = 'mac'
|
||||
else:
|
||||
libraries = [':libcan_list_to_can_capnp.a', ':libcapnp.a', ':libkj.a']
|
||||
ARCH_DIR = 'x64'
|
||||
else:
|
||||
libraries = [':libcan_list_to_can_capnp.a', 'capnp', 'kj']
|
||||
if os.path.isdir("/system"):
|
||||
ARCH_DIR = 'aarch64'
|
||||
else:
|
||||
ARCH_DIR = 'larch64'
|
||||
libraries = ['can_list_to_can_capnp', 'capnp', 'kj']
|
||||
|
||||
setup(name='Boardd API Implementation',
|
||||
cmdclass={'build_ext': BuildExtWithoutPlatformSuffix},
|
||||
@@ -34,7 +20,6 @@ setup(name='Boardd API Implementation',
|
||||
libraries=libraries,
|
||||
library_dirs=[
|
||||
'./',
|
||||
PHONELIBS + '/capnp-cpp/' + ARCH_DIR + '/lib/',
|
||||
],
|
||||
sources=['boardd_api_impl.pyx'],
|
||||
language="c++",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "common/mat.h"
|
||||
#include "common/timing.h"
|
||||
|
||||
// #include <fastcv.h>
|
||||
#include <libyuv.h>
|
||||
|
||||
#define MODEL_WIDTH 160
|
||||
|
||||
Reference in New Issue
Block a user