-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
52 lines (47 loc) · 1.53 KB
/
setup.py
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
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
def configuration(parent_package='', top_path=None):
config = Configuration(None, parent_package, top_path)
# Define Fortran extensions
fortran_sources = [
'src/seidart/fortran/cpmlfdtd.f95',
'src/seidart/fortran/orientsynth.f95'
]
config.add_extension(
name='seidart.fortran.cpmlfdtd',
sources=fortran_sources[0],
)
config.add_extension(
name='seidart.fortran.orientsynth',
sources = fortran_sources[1]
)
return config
if __name__ == "__main__":
setup(
name='seidart',
version='0.1.1',
packages=[
'seidart',
'seidart.fortran',
'seidart.routines',
'seidart.simulations',
'seidart.visualization'
],
configuration=configuration,
entry_points = {
'console_scripts': [
'prjbuild=seidart.routines.prjbuild:main',
'prjrun=seidart.routines.prjrun:main',
'arraybuild=seidart.routines.arraybuild:main',
'sourcefunction=seidart.routines.sourcefunction:main',
'rcxdisplay=seidart.visualization.rcxdisplay:main',
'im2anim=seidart.visualiztion.im2anim:build_animation',
'orientsynth=seidart.fortran.orientsynth'
]
},
install_requires=[
'numpy',
'setuptools',
'wheel'
]
)