-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
68 lines (62 loc) · 1.78 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
# -*- encoding: utf-8 -*-
#
# FECT/setup.py
#
# Author: Jean-Philippe Teissier ( @Jipe_ )
#
# This work is licensed under the GNU General Public License
#
# Dependencies: py2exe
#
# ...
# ModuleFinder can't handle runtime changes to __path__, but win32com uses them
# See. http://www.py2exe.org/index.cgi/win32com.shell #LeLibre...
try:
# py2exe 0.6.4 introduced a replacement modulefinder.
# This means we have to add package paths there, not to the built-in
# one. If this new modulefinder gets integrated into Python, then
# we might be able to revert this some day.
# if this doesn't work, try import modulefinder
try:
import py2exe.mf as modulefinder
except ImportError:
import modulefinder
import win32com, sys
for p in win32com.__path__[1:]:
modulefinder.AddPackagePath("win32com", p)
for extra in ["win32com.shell"]: #,"win32com.mapi"
__import__(extra)
m = sys.modules[extra]
for p in m.__path__[1:]:
modulefinder.AddPackagePath(extra, p)
except ImportError:
# no build path setup, no worries.
pass
from distutils.core import setup
import py2exe
import sys
# Just in case...
if len(sys.argv) == 1:
sys.argv.append("py2exe")
setup(
console=[{
'script': 'FECT.py',
'icon_resources': [(0, 'FECT.ico')]
}],
options={'py2exe':{
'includes': ['pythoncom'],
'includes': ['pywintypes'],
'includes': ['win32'],
'includes': ['win32com'],
'includes': ['win32api'],
'bundle_files': 1
}
},
zipfile = None,
name = 'Fast Evidence Collector Toolkit',
version = '0.3.3',
description = 'Fast Evidence Collector Toolkit',
author = '@Jipe_',
author_email = 'jipedevs_@_gmail_com',
url = 'https://github.com/jipegit/FECT',
)