Mercurial > fhrl
changeset 38:2f0026bdc043
license and setup.py
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Sat, 16 Mar 2013 10:08:50 +0100 |
| parents | 0734bcee6c19 |
| children | 8894e715b86a |
| files | README __main__.py setup.py start.py |
| diffstat | 4 files changed, 94 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README Sat Mar 16 10:08:50 2013 +0100 @@ -0,0 +1,18 @@ +FHRL is a roguelike game created for the Seven Day Roguelike Challenge 2013 by +Radomir Dopieralski. Music by Joanna Piechowiak. + +Controls +======== + +Arrows -- move around +Shift -- turn in place +x + Arrows -- shoot +z + Arrows -- change weapon + +License +======= + +This work is licensed under the Creative Commons +Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of +this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/. +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/__main__.py Sat Mar 16 10:08:50 2013 +0100 @@ -0,0 +1,4 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from fhrl import __main__
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Sat Mar 16 10:08:50 2013 +0100 @@ -0,0 +1,72 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from setuptools import setup +import os +import glob +try: + import py2exe +except ImportError: + pass +else: + origIsSystemDLL = py2exe.build_exe.isSystemDLL + def isSystemDLL(pathname): + if os.path.basename(pathname).lower() in ( + "sdl_mixer.dll", "libogg-0.dll"): + return 0 + return origIsSystemDLL(pathname) + py2exe.build_exe.isSystemDLL = isSystemDLL + + orig_byte_compile = py2exe.build_exe.byte_compile + def byte_compile(*args, **kwargs): + files = orig_byte_compile(*args, **kwargs) + files.extend(os.path.abspath(d) for d in glob.glob("fhrl/*.png")) + files.extend(os.path.abspath(d) for d in glob.glob("fhrl/*.ogg")) + return files + py2exe.build_exe.byte_compile = byte_compile + +setup( + name='fhrl', + version='1.0', + author='Radomir Dopieralski', + packages=['fhrl'], + scripts=['__main__.py'], + include_package_data=True, + zip_safe=True, + install_requires=['distribute', 'pygame'], + platforms='any', + options = { + 'py2exe': { + 'bundle_files': 1, + 'packages': 'fhrl', + 'compressed': True, + 'ascii': True, + 'excludes': [ + 'doctest', + 'pdb', + 'unittest', + 'difflib', + 'inspect', + 'locale', + 'pyreadline', + 'optparse', + 'calendar', + 'pickle', + 'email', + '_ssl', + ] + }, + }, + data_files = [ + ("jelly", glob.glob("jelly/*.png") + glob.glob("jelly/*.ogg")), + ], + windows = [ + { + 'script': "__main__.py", + 'icon_resources': [ + (0, "resources/fhrl.ico"), + ] + } + ], + zipfile = None, +)
