From 487fbd06bfe50ecd5451dc77c92558202561aa31 Mon Sep 17 00:00:00 2001 From: Comma Device Date: Wed, 20 Nov 2019 18:31:54 +0000 Subject: [PATCH] don't rely on BASEDIR, and add zmq library --- messaging/messaging_pyx_setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/messaging/messaging_pyx_setup.py b/messaging/messaging_pyx_setup.py index 321ace07a4e38d..bfc0da40119f75 100644 --- a/messaging/messaging_pyx_setup.py +++ b/messaging/messaging_pyx_setup.py @@ -4,12 +4,11 @@ from Cython.Build import cythonize -from common.basedir import BASEDIR from common.cython_hacks import BuildExtWithoutPlatformSuffix sourcefiles = ['messaging_pyx.pyx'] extra_compile_args = ["-std=c++11"] -libraries = [] +libraries = ['zmq'] ARCH = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip() # pylint: disable=unexpected-keyword-arg if ARCH == "aarch64": @@ -26,7 +25,7 @@ extra_compile_args=extra_compile_args, libraries=libraries, extra_objects=[ - os.path.join(BASEDIR, 'cereal', 'libmessaging.a'), + os.path.join(os.path.dirname(os.path.realpath(__file__)), '../', 'libmessaging.a'), ] ) ),