-
Notifications
You must be signed in to change notification settings - Fork 50
/
setup-py2app.py
54 lines (51 loc) · 1.28 KB
/
setup-py2app.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
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
from version import lexVersion
APP = ['pesterchum.py']
#DATA_FILES = ['pesterchum.js', 'profiles', 'themes', 'smilies', 'logs']
DATA_FILES = ['quirks', 'themes', 'smilies']
# TODO: Grep this version out of version.py
SHORT_VERSION = lexVersion(True) #'3.41.2B5'
LONG_VERSION = lexVersion() #'3.41.2 Beta 5 Bleeding Edge'
OPTIONS = {
'argv_emulation': False,
'prefer_ppc': True,
'includes': [
'sip',
'PyQt4',
'PyQt4.QtCore',
'PyQt4.QtGui'
],
'excludes': [
'PyQt4.QtDesigner',
'PyQt4.QtNetwork',
'PyQt4.QtOpenGL',
'PyQt4.QtScript',
'PyQt4.QtSql',
'PyQt4.QtTest',
'PyQt4.QtWebKit',
'PyQt4.QtXml',
'PyQt4.phonon'
],
'iconfile': 'trayicon32.icns'
,
'plist': {
'NSHumanReadableCopyright': 'GPL v3',
'CFBundleIdentifier': 'skaianet.Pesterchum',
}
}
setup(
name='Pesterchum',
description='A client for the pesterchum network',
version=LONG_VERSION,
license='GPL v3',
app=APP,
data_files=DATA_FILES,
platforms=['i386', 'x86_64'],
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)