Merge pull request #1406 from nanoric/setup_py_windows
[Mod] setup.py: should not build under windows
This commit is contained in:
commit
f6a0b63623
7
setup.py
7
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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user