Merge pull request #1406 from nanoric/setup_py_windows

[Mod] setup.py: should not build under windows
This commit is contained in:
vn.py 2019-02-25 11:50:28 +08:00 committed by GitHub
commit f6a0b63623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
)