-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (54 loc) · 1.81 KB
/
setup.py
File metadata and controls
57 lines (54 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
import numpy as np
from Cython.Distutils import build_ext
from setuptools import Extension, find_packages, setup
ext_modules = []
for name in ["cylinder", "slit", "bessel", "cutoff", "coax", "eig_mat"]:
basename = os.path.join("src", "pymwm", "utils", f"{name}_utils")
e = Extension(
f"pymwm.utils.{name}_utils",
sources=[basename + ".pyx"],
depends=[basename + ".pxd"],
include_dirs=[np.get_include(), "."],
language="c++",
)
e.cython_directives = {"language_level": "3"}
ext_modules.append(e)
setup(
name="pymwm",
version="0.5.7",
url="https://github.com/mnishida/PyMWM",
license="MIT",
author="Munehiro Nishida",
author_email="mnishida@hiroshima-u.ac.jp",
description="A metallic waveguide mode solver",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
zip_safe=False,
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
package_data={
"pymwm": ["py.typed"],
"pymwm.utils": ["py.typed", "*.pyi"],
},
setup_requires=["Cython", "numpy", "scipy"],
install_requires=[line.strip() for line in open("requirements.txt").readlines()],
python_requires=">=3.7",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
],
keywords="metallic waveguide mode, electromagnetism",
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
entry_points={
"console_scripts": [
"update_pymwm_h5 = pymwm.bin.update_pymwm_h5:main",
"split_pymwm_h5 = pymwm.bin.split_pymwm_h5:main",
]
},
)