/
setup.py
71 lines (64 loc) · 1.4 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
69
70
71
"""Builds packaged application.
Usage:
# For distribution.
python setup.py py2app
# For development (aliases).
python setup.py py2app -A
"""
from distutils import core
import py2app
import setuptools
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'pygrow'))
from grow.common import sdk_utils
OPTIONS = {
'site_packages': True,
'iconfile': 'icon.icns',
'includes': [
'BaseHTTPServer',
'Queue',
'cgi',
'htmlentitydefs',
'io',
'json',
'md5',
'multiprocessing',
'pipes',
'sha',
'shutil',
'urllib',
'urllib2',
'wsgiref',
'wsgiref.handlers',
'xml',
'xml.etree.ElementTree',
],
'packages': ['jinja2', 'google.apputils', 'paste.httpserver'],
}
#setuptools.find_packages() +
# TODO(jeremydw): Executable data files should be moved to "app".
core.setup(
name='Grow SDK',
description=(
'Develop everywhere and deploy anywhere: a declarative '
'static site generator/CMS for building high-quality web sites.'
),
url='http://growsdk.org',
author='Grow SDK Authors',
author_email='hello@grow.io',
version=sdk_utils.get_this_version(),
app=[
'MacGrow.py'
],
data_files=[
'MacGrow.nib',
'MainMenu.nib',
'cocoasudo',
'icon.png',
'macgrow_cli.sh',
'pygrow',
'symlinks.py',
],
options={'py2app': OPTIONS},
)