Skip to content

Commit

Permalink
don't rely on BASEDIR, and add zmq library
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Nov 20, 2019
1 parent 223e37a commit 487fbd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions messaging/messaging_pyx_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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'),
]
)
),
Expand Down

0 comments on commit 487fbd0

Please sign in to comment.