From 20e4ef6c6e9f181db35095e9cd084e4d22b6dda7 Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 18 Feb 2019 05:40:15 -0400 Subject: [PATCH] [Add] added setup.py --- setup.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..43391004 --- /dev/null +++ b/setup.py @@ -0,0 +1,39 @@ +from setuptools import Extension, find_packages, setup + +vnctpmd = Extension('vnpy.api.ctp.vnctpmd', + [ + "vnpy/api/ctp/vnctp/vnctpmd/vnctpmd.cpp", + ], + include_dirs=["vnpy/api/ctp/include", "vnpy/api/ctp/vnctp", ], + define_macros=[], + undef_macros=[], + library_dirs=["vnpy/api/ctp/libs"], + libraries=["thostmduserapi", "thosttraderapi", ], + # runtime_library_dirs=["vnpy/api/ctp/libs", ], + extra_compile_args=[], + extra_link_args=[], + depends=[], + language="cpp", + ) +vnctptd = Extension('vnpy.api.ctp.vnctptd', + [ + "vnpy/api/ctp/vnctp/vnctptd/vnctptd.cpp", + ], + include_dirs=["vnpy/api/ctp/include", "vnpy/api/ctp/vnctp", ], + define_macros=[], + undef_macros=[], + library_dirs=["vnpy/api/ctp/libs"], + libraries=["thostmduserapi", "thosttraderapi", ], + # runtime_library_dirs=["vnpy/api/ctp/libs", ], + extra_compile_args=[], + extra_link_args=[], + depends=[], + language="cpp", + ) + +setup( + name="vnpy", + version="2.0.dev0", + packages=find_packages(exclude=["tests", "tests.*", "*.tests.*"]), + ext_modules=[vnctptd, vnctpmd], +)