-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
90 lines (77 loc) · 2.43 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# setup.py
# -*- coding: utf8 -*-
# vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4
"""Setuptools setup.py file for Suspended Sentence."""
from setuptools import setup, find_packages
from gamelib import version
try:
import py2exe
except ImportError:
pass
setup(
# Metadata
name=version.NAME,
version=version.VERSION_STR,
description=version.DESCRIPTION,
author=version.AUTHOR_NAME,
author_email=version.AUTHOR_EMAIL,
maintainer=version.MAINTAINER_NAME,
maintainer_email=version.MAINTAINER_EMAIL,
# url=version.HOMEPAGE,
# download_url=version.PYPI_URL,
license=version.LICENSE,
classifiers=version.CLASSIFIERS,
platforms=version.PLATFORMS,
# Dependencies
install_requires=version.INSTALL_REQUIRES,
# Files
packages=find_packages(),
scripts=['run_game.py'],
include_package_data=True,
# py2exe
console=['scripts/testconsole.py'],
windows=[{
'script': 'scripts/suspended.py',
'icon_resources': [(0, "data/icons/suspended_sentence.ico")],
}],
app=['run_game.py'],
options={
'py2exe': {
'skip_archive': 1,
'dist_dir': 'dist/suspended-sentence-%s' % version.VERSION_STR,
'packages': [
'logging', 'encodings', 'gamelib',
],
'includes': [
# pygame
'pygame',
],
'excludes': [
'numpy',
],
'ignores': [
# all database modules
'pgdb', 'Sybase', 'adodbapi',
'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
'MySQLdb', 'MySQLdb.connections',
'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
# old datetime equivalents
'DateTime', 'DateTime.ISO',
'mx', 'mx.DateTime', 'mx.DateTime.ISO',
# email modules
'email.Generator', 'email.Iterators', 'email.Utils',
],
},
'py2app': {
'argv_emulation': 1,
'iconfile': 'data/icons/suspended_sentence.icns',
# 'dist_dir': 'dist/suspended-sentence-%s' % version.VERSION_STR,
# 'bdist_base': 'build/bdist',
'packages': [
'logging', 'encodings', 'pygame', 'gamelib',
'data',
],
'excludes': ['numpy'],
}},
)