Created
August 4, 2011 15:17
-
-
Save clsn/1125410 to your computer and use it in GitHub Desktop.
Setup.py from singularity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup.py | |
from distutils.core import setup | |
versionnum="0.30" | |
try: | |
import py2exe | |
except ImportError: | |
try: | |
import py2app | |
except ImportError: | |
raise SystemExit, "py2exe or py2app must be installed." | |
import os | |
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=versionnum, | |
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 | |
) | |
) | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment