2016-08-28 19:32:48 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
Created on Sun Dec 13 23:48:22 2015
|
|
|
|
|
|
|
|
@author: thorsten
|
|
|
|
"""
|
|
|
|
|
2021-07-13 17:17:15 +00:00
|
|
|
from setuptools import setup
|
|
|
|
from setuptools import Extension
|
2016-08-28 19:32:48 +00:00
|
|
|
from Cython.Build import cythonize
|
|
|
|
|
|
|
|
import os, sys
|
|
|
|
ROOT_DIR = os.path.dirname(__file__)
|
|
|
|
|
|
|
|
sys.path.append(os.path.join(ROOT_DIR,'..','..','CSXCAD','python'))
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
Extension("*", [os.path.join(os.path.dirname(__file__), "openEMS","*.pyx")],
|
|
|
|
language="c++", # generate C++ code
|
|
|
|
libraries = ['CSXCAD','openEMS', 'nf2ff']),
|
|
|
|
]
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="openEMS",
|
2023-12-15 13:27:03 +00:00
|
|
|
version = '0.0.36',
|
2016-08-28 19:32:48 +00:00
|
|
|
description = "Python interface for the openEMS FDTD library",
|
|
|
|
classifiers = [
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: Information Technology',
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
|
|
|
'Programming Language :: Python',
|
2023-12-15 13:38:26 +00:00
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Programming Language :: Python :: 3.9',
|
|
|
|
'Programming Language :: Python :: 3.10',
|
|
|
|
'Programming Language :: Python :: 3.11',
|
|
|
|
'Programming Language :: Python :: 3.12',
|
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
2016-08-28 19:32:48 +00:00
|
|
|
'Topic :: Scientific/Engineering',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
|
|
'Operating System :: POSIX :: Linux',
|
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
],
|
|
|
|
author = 'Thorsten Liebig',
|
|
|
|
author_email = 'Thorsten.Liebig@gmx.de',
|
|
|
|
maintainer = 'Thorsten Liebig',
|
|
|
|
maintainer_email = 'Thorsten.Liebig@gmx.de',
|
2022-12-29 09:06:11 +00:00
|
|
|
url = 'https://openEMS.de',
|
2016-08-28 19:32:48 +00:00
|
|
|
packages=["openEMS", ],
|
|
|
|
package_data={'openEMS': ['*.pxd']},
|
2023-12-15 13:38:26 +00:00
|
|
|
python_requires='>=3.9',
|
2023-12-15 14:36:20 +00:00
|
|
|
install_requires=[
|
2023-12-15 15:57:19 +00:00
|
|
|
'cython>=3.0.6', # Apache License 2.0 (https://github.com/cython/cython/blob/master/LICENSE.txt)
|
2023-12-15 14:36:20 +00:00
|
|
|
'h5py>=3.10.0', # BSD 3-Clause (https://github.com/h5py/h5py/blob/master/LICENSE)
|
|
|
|
'numpy>=1.26.2', # BSD 3-Clause (https://github.com/numpy/numpy/blob/main/LICENSE.txt)
|
|
|
|
],
|
2022-12-29 09:06:11 +00:00
|
|
|
ext_modules = cythonize(extensions, language_level = "3")
|
2016-08-28 19:32:48 +00:00
|
|
|
)
|