-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
31 lines (31 loc) · 1001 Bytes
/
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
import glob
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need
# fine tuning.
dirs = ['docs']
asmfiles=['asm/crc32.o', 'asm/memsend.o', 'asm/memrecv.o', 'asm/floppyxfer.o']
asmglobs = ['asm/bootblock*.desc', 'asm/bootblock*.dd']
files=[]
for path in asmglobs:
files.extend([(asmfile, asmfile) for asmfile in glob.glob(path)])
files.extend([(asmfile, asmfile) for asmfile in asmfiles])
files.extend(dirs)
build_options = {
'packages': ["serial", "wx"],
'excludes': ["tkinter"],
# 'replace_paths':
'include_files': files,
'include_msvcr': True,
#'compressed': True,
'optimize': 2
}
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('amigaXfer.py', base=base)
]
setup(name='amigaXfer',
version = '1.0.0.dev2',
description = 'Data transfer and tools for an Amiga on the serial port.',
options = {'build_exe': build_options},
executables = executables)