~openteachermaintainers/opengamedesigner/trunk

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
#! /usr/bin/env python3
# -*- coding: utf-8 -*-

#	Copyright 2012, Marten de Vries
#
#	This file is part of OpenGameDesigner.
#
#	OpenGameDesigner is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	OpenGameDesigner is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with OpenGameDesigner.  If not, see <http://www.gnu.org/licenses/>.

from distutils.core import setup
import os
import subprocess
import sys

data_files= [
	("/usr/share/applications", ["linux/opengamedesigner.desktop"]),
	("/usr/share/icons/hicolor/512x512/apps", ["linux/opengamedesigner.png"])
]

for root, dirs, files in os.walk("translations"):
	relative = root[len("translations/"):]
	data_files.append((
		os.path.join("/usr/share/locale", relative),
		[os.path.join(root, file) for file in files],
	))

def main():
	setup(
		name="OpenGameDesigner",
		version="0.1",
		description="Design your own games.",
		author = "OpenTeacher Maintainers",
		author_email = "openteachermaintainers@lists.launchpad.net",
		url = "http://opengamedesigner.org/",
		packages = [
			"opengamedesigner",
			"opengamedesigner.actionwindows",
			"opengamedesigner.configwindows",
			"opengamedesigner.editors",
			"opengamedesigner.parsetables"
		],
		license="GPLv3+ & LGPLv3+ for the library copied into every exported game.",
		package_data={"opengamedesigner": ["resources/*", "icons/*/*/*"]},
		data_files=data_files,
		scripts=['bin/opengamedesigner-ide'],
		long_description="""OpenGameDesigner is an open source application that allows you to design your own games!

You can specify image and sound files you want to use, and then build
the game in the simple LPS programming language. If you make a small
mistake, OpenGameDesigner brings you back on the right track fast. Games
don't only run on websites, but also on mobile devices."""
	)

if __name__ == "__main__":
	main()