-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup_mac.py
36 lines (33 loc) · 1.01 KB
/
setup_mac.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
from glob import glob
from distutils.core import setup
import sys
import py2app
import os
sys.path.append(os.path.join(os.getcwd(), 'grace'))
data_files = [
('plugins', glob(os.path.join('grace', 'plugins') + '\*.py'))
]
previous = ''
for root, dirs, files in os.walk(os.path.join('grace', 'skeletons')):
for filename in files:
if previous != root:
data_files.append((root[6:], glob(root + '\*.*')))
previous = root
setup(
name='grace',
description='A tool to simplify JavaScript development.',
author='Michael Diener',
author_email='dm.menthos@gmail.com',
url='https://github.com/mdiener/grace',
version='0.1',
packages=['grace'],
data_files=data_files,
console=['grace/grace.py'],
options={
'py2exe': {
'packages': ['grace'],
'bundle_files': True,
'includes': ['grace.build', 'grace.deploy', 'grace.error', 'grace.create', 'grace.task', 'grace.testit', 'grace.zipit', 'sass', 'plistlib']
}
}
)