-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·40 lines (32 loc) · 1.06 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
# -*- coding: utf-8 -*-
#
# Copyright © 2014 Brian Schmidt
# Licensed under the terms of the MIT License
"""Create a stand-alone executable"""
try:
from guidata.disthelpers import Distribution
except ImportError:
raise ImportError, "This script requires guidata 1.4+"
import spyderlib
import git as git
import base
import appdirs
Info = git.Repo()
def create_executable():
"""Build executable using ``guidata.disthelpers``"""
dist = Distribution()
dist.setup(name="LM ratio", version="0.2",
description=u"A gui for computing LM ratio",
script="gui_LMratio.py", target_name="LMratio.exe")
dist.add_data_file('dat')
dist.add_data_file('lm_ratiorc.txt')
dist.add_modules('guidata')
dist.add_modules('guiqwt')
dist.add_matplotlib()
dist.includes += ['scipy.sparse.csgraph._validation']
dist.includes += ['scipy.sparse.linalg.dsolve.umfpack']
dist.excludes += ['IPython']
# Building executable
dist.build('cx_Freeze', cleanup=True)
if __name__ == '__main__':
create_executable()