diff --git a/cython/setup.py b/cython/setup.py index 94db597..e2a5475 100644 --- a/cython/setup.py +++ b/cython/setup.py @@ -15,7 +15,7 @@ extensions = Extension( setup( name="imc_termite", - version='1.2.6', + version='1.2.7', description='IMCtermite cython extension', author='Record Evolution GmbH', author_email='mario.fink@record-evolution.de', diff --git a/pip/setup.py b/pip/setup.py index 53f3dd1..a5f3beb 100644 --- a/pip/setup.py +++ b/pip/setup.py @@ -1,12 +1,24 @@ from setuptools import setup, Extension +import sys + +print("building on platform: "+sys.platform) + +if sys.platform == "linux" or sys.platform == "darwin" : + cmpargs = ['-std=c++17','-Wno-unused-variable'] + lnkargs = ['-std=c++17','-Wno-unused-variable'] +elif sys.platform == "win32" : + cmpargs = ['/EHsc','/std:c++17'] + lnkargs = [] +else : + raise RuntimeError("unknown platform") with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name="IMCtermite", - version="1.2.6", + version="1.2.7", author="Record Evolution GmbH", author_email="mario.fink@record-evolution.de", maintainer="Record Evolution GmbH", @@ -30,7 +42,8 @@ setup( # include_dirs=["3rdparty/pugixml/","lib/"], # depends=["../lib/tdm_termite.hpp"] language='c++', - extra_compile_args=['-std=c++17','-Wno-unused-variable'], - extra_link_args=['-std=c++17'], - )], + extra_compile_args=cmpargs, + extra_link_args=lnkargs, + ) + ], )