From 4bc3121df1aa7a7ec389aac134bb1817b4209ad8 Mon Sep 17 00:00:00 2001 From: nanoric Date: Sun, 24 Feb 2019 23:33:22 -0400 Subject: [PATCH] [Mod] setup.py: should not build under windows --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 87493d9f..1ff11876 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,11 @@ vnctptd = Extension('vnpy.api.ctp.vnctptd', language="cpp", ) +if platform.uname().system == "Windows": + ext_modules = [] # use built in pyd +else: + ext_modules = [vnctptd, vnctpmd], + pkgs = find_packages() s = setup( @@ -52,5 +57,5 @@ s = setup( install_requires=[ "" ], - ext_modules=[vnctptd, vnctpmd], + ext_modules=ext_modules )