annotate setup.py @ 697:ecaa4d98f05f tip

Abstracted the GUI code and refactored the GUIChan-specific code into its own module. * Most of the GUIChan code has been refactored into its own gui/guichan module. However, references to the GuiFont class still persist in the Engine and GuiManager code and these will need further refactoring. * GuiManager is now an abstract base class which specific implementations (e.g. GUIChan) should subclass. * The GUIChan GUI code is now a concrete implementation of GuiManager, most of which is in the new GuiChanGuiManager class. * The GUI code in the Console class has been refactored out of the Console and into the GUIChan module as its own GuiChanConsoleWidget class. The rest of the Console class related to executing commands was left largely unchanged. * Existing client code may need to downcast the GuiManager pointer received from FIFE::Engine::getGuiManager() to GuiChanGuiManager, since not all functionality is represented in the GuiManager abstract base class. Python client code can use the new GuiChanGuiManager.castTo static method for this purpose.
author M. George Hansen <technopolitica@gmail.com>
date Sat, 18 Jun 2011 00:28:40 -1000
parents 86b4d91d9e52
children
rev   line source
382
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
1 #!/usr/bin/env python
396
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
2 # -*- coding: utf-8 -*-
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
3
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
4 # ####################################################################
660
b0733d998d0f * Updated the REAMDE
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 492
diff changeset
5 # Copyright (C) 2005-2010 by the FIFE team
b0733d998d0f * Updated the REAMDE
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 492
diff changeset
6 # http://www.fifengine.net
396
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
7 # This file is part of FIFE.
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
8 #
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
9 # FIFE is free software; you can redistribute it and/or
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
10 # modify it under the terms of the GNU Lesser General Public
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
11 # License as published by the Free Software Foundation; either
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
12 # version 2.1 of the License, or (at your option) any later version.
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
13 #
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
14 # This library is distributed in the hope that it will be useful,
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
17 # Lesser General Public License for more details.
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
18 #
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
19 # You should have received a copy of the GNU Lesser General Public
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
20 # License along with this library; if not, write to the
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
21 # Free Software Foundation, Inc.,
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
22 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
23 # ####################################################################
81641655bc38 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 382
diff changeset
24
382
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
25
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
26 from distutils.core import setup
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
27 import os, sys
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
28
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
29 if sys.platform == 'win32':
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
30 pkg_data = {'fife': ['*.pyd','*.dll'] }
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
31 else:
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
32 pkg_data = {'fife': ['*.so'] }
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
33
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
34
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
35 setup(name='fife',
686
86b4d91d9e52 Patch by barra:
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 660
diff changeset
36 version='0.3.2r2',
382
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
37 description='Flexible Isometric Free Engine',
492
16ceb3228324 Moved the SoundManager and the 2D math function (helpers) from the shooter demo to the fife extensions.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 443
diff changeset
38 url='www.fifengine.net',
382
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
39 packages = ['fife', 'fife.extensions', 'fife.extensions.pychan', 'fife.extensions.pychan.widgets', 'fife.extensions.pychan.widgets.ext', 'fife.extensions.serializers' ],
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
40 package_dir = { '': os.path.join('engine','python') },
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
41 package_data = pkg_data,
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
42 data_files = [(os.path.join('lib','site-packages', 'fife'),['AUTHORS','CHANGES', 'COPYING' ,'README'])],
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
43 license = 'GNU Lesser General Public License, version 2.1'
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
44 )
7ff1394fe271 Adding the distutils setup.py file.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
45