-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetupMac.py
More file actions
42 lines (36 loc) · 927 Bytes
/
setupMac.py
File metadata and controls
42 lines (36 loc) · 927 Bytes
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
from setuptools import setup
APP = ['app.py']
DATA_FILES = []
OPTIONS = {
'includes': [
'readline',
],
'iconfile': 'layout/resources/logo.icns',
# Prevents an issue involving setuptools' vendored
# packages causing conflicts with our own versions.
#
# For further information:
# https://github.com/ronaldoussoren/py2app/issues/531
'excludes': [
'setuptools',
]
}
import os
def loopThrough(directory):
files = []
for file in os.listdir(directory):
cur = os.path.join(directory, file)
if os.path.isfile(cur):
files.append(cur)
elif os.path.isdir(cur):
loopThrough(cur)
DATA_FILES.append((directory, files))
loopThrough('layout')
print('\n'.join(list(map(str, DATA_FILES))))
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
name='3DS-RPC',
)