50 lines
1.7 KiB
Python
50 lines
1.7 KiB
Python
|
|
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="TDMtermite",
|
|
version="1.0.4",
|
|
author="Record Evolution GmbH",
|
|
author_email="mario.fink@record-evolution.de",
|
|
maintainer="Record Evolution GmbH",
|
|
license="MIT",
|
|
description="Extract and read data from National Instruments LabVIEW tdx/tdm files and export them as csv files",
|
|
keywords="TDM/TDX NationalInstruments LabVIEW decode",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/RecordEvolution/TDMtermite.git",
|
|
project_urls={
|
|
"Bug Tracker": "https://github.com/RecordEvolution/TDMtermite/issues",
|
|
},
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
],
|
|
ext_modules=[Extension("tdm_termite",
|
|
["py_tdm_termite.cpp"],
|
|
# libraries_dirs = ["cython/"],
|
|
# include_dirs = ["3rdparty/pugixml/","lib/"],
|
|
# depends = ["../lib/tdm_termite.hpp"]
|
|
language = 'c++',
|
|
extra_compile_args = cmpargs,
|
|
extra_link_args = lnkargs,
|
|
)
|
|
],
|
|
)
|