forked from singularity/singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (35 loc) · 1.31 KB
/
Copy pathsetup.py
File metadata and controls
43 lines (35 loc) · 1.31 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
#!/usr/bin/env python
import code.g
import sys
import os
from distutils.core import setup
if sys.platform.startswith("win32") or sys.platform.startswith("cygwin"):
try:
import py2exe
except ImportError:
raise SystemExit("For Windows, 'py2exe' module must be installed.")
elif sys.platform.startswith("darwin"):
try:
import py2app
except ImportError:
raise SystemExit("For Mac OS X, 'py2app' module must be installed.")
elif sys.platform.startswith("linux"):
raise SystemExit, "setup was not tested in Linux. Use 'singularity.py' to run the game"
my_files = os.listdir(".")
my_files = [file for file in my_files if file not in ("dist", "build")]
setup(app=["singularity.py"], console=["singularity.py"],
name="Endgame Singularity",
version=code.g.version,
description="A simulation of a true AI",
author="Evil Mr Henry",
author_email="evilmrhenry@emhsoft.com",
url = "http://www.emhsoft.com/singularity/index.html",
license = "GPL",
options = dict( py2app = dict(archs = "x86,ppc",
resources = ",".join(my_files)
),
py2exe = dict(compressed = True,
bundle_files = 1
)
)
)