-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
138 lines (129 loc) · 4.55 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#!/usr/bin/env python3
import sys, os, subprocess
# prepare setuptools environment
try:
from setuptools import setup, find_packages
except ImportError:
print("Could NOT import setuptools, try ez_setup...")
try:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
except ImportError:
print("Could NOT import either setuptools or ez_setup, GIVE UP!")
print("Download ez_setup.py e.g. " \
"from https://bootstrap.pypa.io/ez_setup.py,")
print("place it in the same directory as setup.py, and try again... ")
sys.exit(1)
setup(
name = "mc_tools",
version = os.popen("git describe --tags --long").read().strip(),
author = "Konstantin Batkov",
author_email = "batkov@gmail.com",
url = "https://github.com/kbat/mc-tools/",
license = "LGPL-3.0 License",
description = "Some Monte Carlo tools for MCNPX, PHITS and FLUKA",
packages = find_packages(),
install_requires = [ "numpy",
"pandas"
],
data_files = [
# MCNP
("mctools/mcnp", [ "mctools/mcnp/reference_guide.pdf" ]
),
("mctools/mcnp/examples",
[ "mctools/mcnp/examples/ssw2root/example.C" ]
),
# PHITS
("mctools/phits/examples",
[ "mctools/phits/examples/loadlevel-single.job" ]
),
("mctools/phits/elisp",
[ "mctools/phits/phits-mode.el" ]
),
# FLUKA
("mctools/fluka/elisp",
["mctools/fluka/fluka-mode.el"]
)
],
entry_points = {
"console_scripts" : [
# COMMON
"ace2root = mctools.common.ace2root:main",
"ascii2gr = mctools.common.ascii2gr:main",
"ascii2th1 = mctools.common.ascii2th1:main",
"ascii2th3 = mctools.common.ascii2th3:main",
"ascii2tree = mctools.common.ascii2tree:main",
"h2ascii = mctools.common.h2ascii:main",
"vtk2root = mctools.common.vtk2root:main",
"lsroot = mctools.common.lsroot:main",
"plot2d = mctools.common.plot2d:main",
"root2txt = mctools.common.root2txt:main",
# FLUKA
"fluka2root = mctools.fluka.fluka2root:main",
"eventdat2root = mctools.fluka.eventdat2root:main",
"plotgeom2root = mctools.fluka.plotgeom2root:main",
"usbsuw2root = mctools.fluka.usbsuw2root:main",
"ustsuw2root = mctools.fluka.ustsuw2root:main",
"usxsuw2root = mctools.fluka.usxsuw2root:main",
# MCNP
"mctal2root = mctools.mcnp.mctal2root:main",
"ssw2root = mctools.mcnp.ssw2root:main",
"ssw2txt = mctools.mcnp.ssw2txt:main",
"mcnpview = mctools.mcnp.mcnpview:main",
"mcnpxview = mctools.mcnp.mcnpview:main",
# PHITS
"angel2root = mctools.phits.angel2root:main",
"rotate3dshow = mctools.phits.rotate3dshow:main",
]
},
scripts = [
"bin/mc-tools-fluka-merge",
"bin/fluka.stop",
"bin/rfluka.stop",
]
)
# order: WSF
# 2020-07-14 6 16 8 9 8 12
# 2020-09-09 6 16 8 9 8 12
# 2020-10-03 6 16 8 9 9 12
# 2020-10-27 6 18 8 9 9 12
# 2020-11-24 7 20 8 9 9 12
# 2020-12-01 7 21 10 9 9 12
# 2020-12-07 7 22 10 9 9 12
# 2021-02-01 7 22 10 9 10 12
# 2021-03-29 7 21 10 9 10 12
# 2021-04-01 8 21 10 9 10 12
# 2021-06-14 8 21 10 9 10 13
# 2021-08-17 8 23 10 10 10 13
# 2022-02-10 8 23 10 10 10 12
# 2022-03-14 8 23 11 10 10 12
# 2022-03-29 8 24 11 10 10 12
# 2022-04-26 8 24 11 11 11 12
# 2022-05-05 8 24 11 11 11 13
# 2022-05-19 8 25 11 11 11 13
# 2022-06-22 8 26 11 11 11 13
# 2022-06-22 8 25 12 11 11 13
# 2022-08-21 8 26 12 11 11 13
# 2022-09-01 8 27 12 11 11 13
# 2022-09-22 8 28 12 11 11 13
# 2022-12-06 8 28 12 11 12 13
# 2022-12-29 8 29 12 11 12 13
# 2023-03-06 8 29 12 11 13 13
# 2023-03-16 8 30 13 11 13 13
# 2023-04-12 8 30 14 11 13 13
# 2023-05-09 8 31 14 11 13 13
# 2023-08-04 8 32 15 11 13 13
# 2023-08-22 10 34 15 11 13 13
# 2023-09-13 10 34 15 11 12 13
# 2023-10-19 10 36 15 11 13 13
# 2023-12-07 10 38 15 11 13 13
# 2023-12-17 10 39 15 11 12 13
# 2024-01-08 9 39 15 11 12 13
# 2024-01-22 9 39 16 12 12 13
# 2024-02-09 9 39 16 12 12 13
# 2024-05-17 9 40 16 12 12 13
# 2024-08-06 9 41 16 12 13 13
# 2024-10-04 9 41 17 12 13 13
# 2024-10-16 9 44 17 12 13 13
# 2024-10-29 9 45 17 12 14 13