From c7078531b7a863be6bcdc64b8afce7a055e96a22 Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 18 Mar 2019 22:44:40 -0400 Subject: [PATCH] [Fix] ctp: fixed linux .so not found error --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 53e85ea5..2a4a568f 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ vnctpmd = Extension("vnpy.api.ctp.vnctpmd", extra_compile_args=compiler_flags, extra_link_args=extra_link_args, depends=[], - runtime_library_dirs=["vnpy/api/ctp"], + runtime_library_dirs=["$ORIGIN"], language="cpp", ) vnctptd = Extension("vnpy.api.ctp.vnctptd", @@ -48,7 +48,7 @@ vnctptd = Extension("vnpy.api.ctp.vnctptd", libraries=["thostmduserapi", "thosttraderapi", ], extra_compile_args=compiler_flags, extra_link_args=extra_link_args, - runtime_library_dirs=["vnpy/api/ctp"], + runtime_library_dirs=["$ORIGIN"], depends=[], language="cpp", )