* github/workflows: include build_setup as requirement for all wheels
* setup.py: enable c++17 option * gitignore: add wheelhouse/ * README.md: cibuildwheel references
This commit is contained in:
@@ -4,4 +4,3 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.cibuildwheel]
|
||||
before-all = ""
|
||||
|
||||
|
@@ -7,7 +7,7 @@ version = file: VERSION
|
||||
author = Record Evolution GmbH
|
||||
author_email = mario.fink@record-evolution.de
|
||||
maintainer = Record Evolution GmbH
|
||||
url= 'https://github.com/RecordEvolution/IMCtermite.git'
|
||||
url= https://github.com/RecordEvolution/IMCtermite.git
|
||||
license = MIT License
|
||||
license_files = LICENSE
|
||||
keywords = IMC, raw, imcFAMOS, imcSTUDIO, imcCRONOS
|
||||
@@ -15,5 +15,7 @@ classifiers =
|
||||
Programming Language :: Python :: 3,
|
||||
License :: OSI Approved :: MIT License,
|
||||
Operating System :: OS Independent
|
||||
Topic :: Scientific/Engineering
|
||||
Topic :: Software Development :: Libraries :: Python Modules
|
||||
|
||||
[options]
|
||||
|
@@ -1,6 +1,22 @@
|
||||
from setuptools import setup
|
||||
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(["IMCtermite.pyx"],language_level=3)
|
||||
ext_modules=cythonize(extension,language_level=3)
|
||||
)
|
||||
|
Reference in New Issue
Block a user