[Fix] ctp: fixed linux .so not found error

This commit is contained in:
nanoric 2019-03-18 22:44:40 -04:00
parent 8e5ea24a36
commit c7078531b7

View File

@ -34,7 +34,7 @@ vnctpmd = Extension("vnpy.api.ctp.vnctpmd",
extra_compile_args=compiler_flags, extra_compile_args=compiler_flags,
extra_link_args=extra_link_args, extra_link_args=extra_link_args,
depends=[], depends=[],
runtime_library_dirs=["vnpy/api/ctp"], runtime_library_dirs=["$ORIGIN"],
language="cpp", language="cpp",
) )
vnctptd = Extension("vnpy.api.ctp.vnctptd", vnctptd = Extension("vnpy.api.ctp.vnctptd",
@ -48,7 +48,7 @@ vnctptd = Extension("vnpy.api.ctp.vnctptd",
libraries=["thostmduserapi", "thosttraderapi", ], libraries=["thostmduserapi", "thosttraderapi", ],
extra_compile_args=compiler_flags, extra_compile_args=compiler_flags,
extra_link_args=extra_link_args, extra_link_args=extra_link_args,
runtime_library_dirs=["vnpy/api/ctp"], runtime_library_dirs=["$ORIGIN"],
depends=[], depends=[],
language="cpp", language="cpp",
) )