forked from nzblnk/nzb-monkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (48 loc) · 1.28 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import datetime
import sys
from distutils.core import setup
from version import __version__, __requires__
try:
import py2exe
except ImportError:
if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
print("Cannot import py2exe, please install!", file=sys.stderr)
exit(1)
# Load version
exec(compile(open('src/version.py').read(), 'src/version.py', 'exec'))
params = {
'console': [{
"script": "./src/nzbmonkey.py",
"dest_base": "nzbmonkey",
"icon_resources": [(0, "./resource/nzb-monkey-icons.ico")],
"product_name": "NZB-Monkey™",
"version": __version__,
"company_name": "NZBLNK, Inc.",
"copyright": "© %d, NZBLNK, Inc." % datetime.datetime.now().year
}],
'options': {
"py2exe": {
"bundle_files": 1,
"compressed": 1,
"optimize": 2,
'includes': 'nzblnkconfig',
'excludes': ['doctest', 'pdb', 'unittest', 'difflib', 'inspect'],
"dist_dir": 'dist'
}
},
'zipfile': None
}
setup(
name='nzb-monkey-py',
version=__version__,
packages=[''],
url='',
license='',
author='',
author_email='',
description='',
requires=__requires__,
**params
)