[Mod] setup.py: should not build under windows
This commit is contained in:
parent
309e7bf339
commit
4bc3121df1
7
setup.py
7
setup.py
@ -38,6 +38,11 @@ vnctptd = Extension('vnpy.api.ctp.vnctptd',
|
|||||||
language="cpp",
|
language="cpp",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if platform.uname().system == "Windows":
|
||||||
|
ext_modules = [] # use built in pyd
|
||||||
|
else:
|
||||||
|
ext_modules = [vnctptd, vnctpmd],
|
||||||
|
|
||||||
pkgs = find_packages()
|
pkgs = find_packages()
|
||||||
|
|
||||||
s = setup(
|
s = setup(
|
||||||
@ -52,5 +57,5 @@ s = setup(
|
|||||||
install_requires=[
|
install_requires=[
|
||||||
""
|
""
|
||||||
],
|
],
|
||||||
ext_modules=[vnctptd, vnctpmd],
|
ext_modules=ext_modules
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user