forked from jeena/FeedTheMonkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (54 loc) · 1.86 KB
/
setup.py
File metadata and controls
63 lines (54 loc) · 1.86 KB
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
#!/usr/bin/env python2
import os, PyQt4
from setuptools import setup
from sys import platform as _platform
VERSION = "0.1.1"
APP = ["feedthemonkey"]
files = []
options = {}
setup_requires = []
is_osx = _platform == "darwin"
is_win = os.name == "nt"
is_linux = not is_osx and not is_win
if is_linux:
files += ('/usr/share/applications', ["feedthemonkey.desktop"])
files += ('/usr/share/pixmaps', ["feedthemonkey.xpm"])
if is_osx:
options = {
'py2app': {
'argv_emulation': False,
'iconfile': 'Icon.icns',
'plist': {
'CFBundleShortVersionString': VERSION,
'CFBundleIdentifier': "nu.jabs.apps.feedthemonkey",
'LSMinimumSystemVersion': "10.4",
'CFBundleURLTypes': [
{
'CFBundleURLName': 'nu.jabs.apps.feedthemonkey.handler',
'CFBundleURLSchemes': ['feedthemonkey']
}
]
},
'includes':['PyQt4.QtWebKit', 'PyQt4', 'PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtNetwork'],
'excludes': ['PyQt4.QtDesigner', 'PyQt4.QtOpenGL', 'PyQt4.QtScript', 'PyQt4.QtSql', 'PyQt4.QtTest', 'PyQt4.QtXml', 'PyQt4.phonon', 'simplejson'],
'qt_plugins': 'imageformats',
}
}
setup_requires = ["py2app"]
for dirname, dirnames, filenames in os.walk('.'):
for filename in filenames:
if filename == "Icon.icns":
files += [(dirname, [os.path.join(dirname, filename)])]
setup(
app = APP,
name = "FeedTheMonkey",
options = options,
version = VERSION,
author = "Jeena Paradies",
author_email = "spam@jeenaparadies.net",
url = "http://jabs.nu/feedthemonkey",
license = "BSD license",
scripts = ["feedthemonkey"],
data_files = files,
setup_requires = setup_requires
)