forked from open-pulse/OpenPulse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (50 loc) · 1.4 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
import os, sys
from pulse import __version__
from cx_Freeze import setup, Executable
shortcut_table = [
(
"DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"Open Pulse", # Name
"TARGETDIR", # Component_
"[TARGETDIR]OpenPulse.exe",# Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
)
]
build_exe_options = dict(
packages = ['vtkmodules', 'scipy'],
excludes = [
'envpulse/',
'.config'
],
include_files = [
'data',
'libs'
]
)
build_msi_options = dict(
data = {'Shortcut':shortcut_table}
)
executable = [
Executable(
script = 'pulse.py',
target_name = 'OpenPulse',
icon = 'data/icons/pulse.ico'
)
]
setup(
name = 'OpenPulse',
author = 'MOPT',
version = __version__,
description = 'A software written in Python for numerical modelling of low-frequency \
acoustically induced vibration in gas pipeline systems',
options = dict(build_exe = build_exe_options,
bdist_msi = build_msi_options),
executables = executable
)