import os import glob from distutils.core import setup DESCRIPTION = """glChess is an open source 3D chess interface for the Gnome desktop. It is designed to be used by both beginner and experienced players. Games can be played between a combination of local players, players connected via a LAN and artificial intelligences. """ CLASSIFIERS = ['License :: OSI-Approved Open Source :: GNU General Public License (GPL)', 'Intended Audience :: by End-User Class :: End Users/Desktop', 'Development Status :: 4 - Beta', 'Topic :: Desktop Environment :: Gnome', 'Topic :: Games/Entertainment :: Board Games', 'Programming Language :: Python', 'Operating System :: Grouping and Descriptive Categories :: All POSIX (Linux/BSD/UNIX-like OSes)', 'Operating System :: Modern (Vendor-Supported) Desktop Operating Systems :: Linux', 'User Interface :: Graphical :: Gnome', 'User Interface :: Graphical :: OpenGL', 'User Interface :: Toolkits/Libraries :: GTK+', 'Translations :: Azerbaijani', 'Translations :: English', 'Translations :: Finnish', 'Translations :: French', 'Translations :: German', 'Translations :: Italian', 'Translations :: Lithuanian', 'Translations :: Panjabi', 'Translations :: Polish', 'Translations :: Spanish', 'Translations :: Swedish', 'Translations :: Turkish'] DATA_FILES = [] # MIME files DATA_FILES.append(('share/mime/packages', ['data/mime/glchess.xml'])) # UI files DATA_FILES.append(('share/glchess/gui', ['data/glchess.svg'] + glob.glob('glade/*.glade'))) # Config files DATA_FILES.append(('share/glchess/', ['data/ai.xml'])) # GConf files DATA_FILES.append(('etc/gconf/schemas', ['data/glchess.schemas'])) # Texture files TEXTURES = [] for file in ['board.png', 'piece.png']: TEXTURES.append('data/textures/' + file) DATA_FILES.append(('share/glchess/textures', TEXTURES)) DATA_FILES.append(('share/applications', ['data/glchess.desktop'])) DATA_FILES.append(('share/pixmaps', ['data/glchess.svg'])) # Language files #for poFile in glob.glob('po/*.po'): # language = poFile[3:-3] # DATA_FILES.append(('share/locale/' + language + '/LC_MESSAGES', poFile)) #print DATA_FILES setup(name = 'glchess', version = '1.0.6', classifiers = CLASSIFIERS, description = '3D Chess Interface', long_description = DESCRIPTION, author = 'Robert Ancell', author_email = 'bob27@users.sourceforge.net', license = 'GPL', url = 'http://glchess.sourceforge.net', download_url = 'http://sourceforge.net/project/showfiles.php?group_id=6348', package_dir = {'': 'lib'}, packages = ['glchess', 'glchess.chess', 'glchess.ggz', 'glchess.chess.fics', 'glchess.scene', 'glchess.scene.cairo', 'glchess.scene.opengl', 'glchess.ui', 'glchess.gtkui'], data_files = DATA_FILES, scripts = ['glchess'])