Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename package from source to monorail * Add distutils setup script
- Loading branch information
Thomas Zimmermann
committed
Nov 23, 2012
1 parent
c984341
commit 245cc81
Showing
85 changed files
with
135 additions
and
43 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
include README README.md setup.py build.py LICENSE.txt MysticMine | ||
|
||
include locales/gettext.sh locales/messages.pot locales/de_DE.po locales/en_US.po locales/ru_RU.po | ||
|
||
include data/800x600/edmunds.ttf data/800x600/font_default.fnt data/800x600/font_default.png data/800x600/resources.cfg | ||
|
||
include monorail/fonts/freesansbold.ttf | ||
|
||
include monorail/__init__.py monorail/ai.pyx monorail/control.py monorail/controlview.py monorail/event.py | ||
include monorail/eventview.py monorail/frame.py monorail/hud.py monorail/menu.py monorail/monkey.py | ||
include monorail/monorail.py monorail/pickups.py monorail/pickupsview.py monorail/player.py | ||
include monorail/playerview.py monorail/profile.py monorail/scenarios.py monorail/settings.py | ||
include monorail/setup.py monorail/setup_py2app.py monorail/setup_py2exe.py monorail/sndman.py | ||
include monorail/tiles.py monorail/tilesview.py monorail/world.py monorail/worldview.py | ||
|
||
include monorail/koon/__init__.py monorail/koon/app.py monorail/koon/build.py monorail/koon/cfg.py monorail/koon/geo.py | ||
include monorail/koon/gfx.py monorail/koon/gui.py monorail/koon/input.py monorail/koon/res.py monorail/koon/snd.py | ||
|
||
include monorail/tests/__init__.py monorail/tests/test_ai.py monorail/tests/test_control.py monorail/tests/test_frame.py | ||
include monorail/tests/test_geo.py monorail/tests/test_menu.py monorail/tests/test_pickups.py monorail/tests/test_pickupsview.py | ||
include monorail/tests/test_player.py monorail/tests/test_playerview.py monorail/tests/test_scenarios.py | ||
include monorail/tests/test_settings.py monorail/tests/test_tiles.py monorail/tests/test_world.py | ||
|
||
recursive-include data/800x600/gfx * | ||
recursive-include data/800x600/levels * | ||
recursive-include data/800x600/locale * | ||
recursive-include data/800x600/music * | ||
recursive-include data/800x600/snd * | ||
|
||
recursive-include assets * |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env python | ||
import monorail.monorail | ||
|
||
monorail.monorail.main() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md |
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
10 changes: 5 additions & 5 deletions
10
source/tests/test_control.py → monorail/tests/test_control.py
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
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
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
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
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
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
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
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
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
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/python | ||
from distutils.core import Extension, setup | ||
from distutils.command.install import INSTALL_SCHEMES | ||
from Pyrex.Distutils import build_ext | ||
import os | ||
|
||
# http://stackoverflow.com/questions/1612733/including-non-python-files-with-setup-py | ||
for scheme in INSTALL_SCHEMES.values(): | ||
scheme['data'] = scheme['purelib'] | ||
|
||
def find_data_files(srcdir, *wildcard): | ||
file_list = [] | ||
if not srcdir.endswith('/'): | ||
srcdir+='/' | ||
for files in os.listdir(srcdir): | ||
if files.endswith(wildcard): | ||
file_list.append(srcdir+files) | ||
return file_list | ||
|
||
gfx = find_data_files('data/800x600/gfx/', '.png') | ||
levels = find_data_files('data/800x600/levels/', '.lvl') | ||
music = find_data_files('data/800x600/music/', '.ogg') | ||
snd = find_data_files('data/800x600/snd/', '.wav') | ||
|
||
setup( name='MysticMine', | ||
version='1.0.0', | ||
author='koonsolo', | ||
author_email='info@koonsolo.com', | ||
description='A one switch game', | ||
url='http://www.koonsolo.com/mysticmine/', | ||
download_url='http://github.com/koonsolo/MysticMine', | ||
license='LICENSE.txt', | ||
scripts=['MysticMine'], | ||
packages=['monorail','monorail.koon','monorail.tests'], | ||
data_files=[('monorail/fonts',['monorail/fonts/freesansbold.ttf']), | ||
('monorail/data',['data/800x600/edmunds.ttf','data/800x600/font_default.fnt', | ||
'data/800x600/font_default.png','data/800x600/resources.cfg', | ||
] | ||
), | ||
('monorail/data/locale/en_US/LC_MESSAGES/',['data/800x600/locale/en_US/LC_MESSAGES/monorail.mo']), | ||
('monorail/data/locale/de_DE/LC_MESSAGES/',['data/800x600/locale/de_DE/LC_MESSAGES/monorail.mo']), | ||
('monorail/data/locale/ru_RU/LC_MESSAGES/',['data/800x600/locale/ru_RU/LC_MESSAGES/monorail.mo']), | ||
('monorail/data/gfx',gfx), | ||
('monorail/data/levels',levels), | ||
('monorail/data/music',music), | ||
('monorail/data/snd',snd), | ||
], | ||
ext_modules=[ | ||
Extension("monorail.ai", ["monorail/ai.pyx"]) | ||
], | ||
cmdclass = {'build_ext': build_ext}, | ||
install_requires=[ | ||
"pygame", | ||
"numpy", | ||
"pyrex", | ||
], | ||
) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.