-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (41 loc) · 1.37 KB
/
setup.py
File metadata and controls
54 lines (41 loc) · 1.37 KB
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
#! /usr/bin/env python3
import sys
import os
version = 'git'
scripts = ['mqeq.py']
data_files = ['resources', 'README.txt']
build_exe_options = {'packages': ['os', 'PyQt5', 'PIL', 'mapqeditorq'],
'includes': ['sip'],
'excludes': 'tkinter',
'include_files': data_files,
}
executables = []
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
if '--no-freeze' not in sys.argv:
try:
from cx_Freeze import setup, Executable
for script in scripts:
executables.append(Executable(script, base=base, icon=os.path.abspath('resources/mqeq-icon.ico')))
except ImportError:
print('cx_Freeze not found. Using distutils instead.')
else:
sys.argv.remove('--no-freeze')
if 'setup' not in locals():
from distutils.core import setup
module_init = 'mapqeditorq/__init__.py'
if not os.path.exists(module_init):
f = open(module_init, 'w')
f.close()
setup(name='MQEQ - Map Editor',
version=version,
description='Map Editor for The Legend of Zelda, the Minish Cap game',
author='Kaiser de Emperana (Mauro B.)',
url='https://github.com/kaisermg5/mapqeditorq',
options={"build_exe": build_exe_options},
requires=['sip', 'PyQt5', 'PIL'],
scripts=scripts,
packages=['mapqeditorq'],
executables=executables
)