* setup.py: enable c++17 option * gitignore: add wheelhouse/ * README.md: cibuildwheel references
23 lines
483 B
Python
23 lines
483 B
Python
from setuptools import Extension, setup
|
|
from Cython.Build import cythonize
|
|
import os
|
|
import sys
|
|
|
|
print("building on platform: "+sys.platform)
|
|
|
|
cmpArgs = {
|
|
"linux": ['-std=c++17','-Wno-unused-variable'],
|
|
"darwin": ['-std=c++17','-Wno-unused-variable'],
|
|
"win32": ['/EHsc','/std:c++17']
|
|
}
|
|
|
|
extension = Extension(
|
|
"IMCtermite",
|
|
sources=["IMCtermite.pyx"],
|
|
extra_compile_args=cmpArgs[sys.platform]
|
|
)
|
|
|
|
setup(
|
|
ext_modules=cythonize(extension,language_level=3)
|
|
)
|