view setup.py @ 854:79b5c1be9a5e default tip

Remove pyntnclick, it's its own library, now
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 21 Jun 2014 22:06:09 +0200
parents b616eeab0b82
children
line wrap: on
line source

# setup.py
# -*- coding: utf8 -*-
# vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4

"""Setuptools setup.py file for Suspended Sentence."""

from setuptools import setup, find_packages
from gamelib import version

try:
    import py2exe
except ImportError:
    pass

setup(
      # Metadata
      name=version.NAME,
      version=version.VERSION_STR,
      description=version.DESCRIPTION,

      author=version.AUTHOR_NAME,
      author_email=version.AUTHOR_EMAIL,

      maintainer=version.MAINTAINER_NAME,
      maintainer_email=version.MAINTAINER_EMAIL,

      # url=version.HOMEPAGE,
      # download_url=version.PYPI_URL,

      license=version.LICENSE,

      classifiers=version.CLASSIFIERS,

      platforms=version.PLATFORMS,

      # Dependencies
      install_requires=version.INSTALL_REQUIRES,

      # Files
      packages=find_packages(),
      scripts=['run_game.py'],

      # py2exe
      console=['scripts/testconsole.py'],
      windows=[{
          'script': 'scripts/suspended.py',
          'icon_resources': [(0, "data/icons/suspended_sentence.ico")],
      }],
      app=['run_game.py'],
      options={
      'py2exe': {
          'skip_archive': 1,
          'dist_dir': 'dist/suspended-sentence-%s' % version.VERSION_STR,
          'packages': [
              'logging', 'encodings', 'gamelib',
          ],
          'includes': [
              # pygame
              'pygame',
          ],
          'excludes': [
              'numpy',
          ],
          'ignores': [
              # all database modules
              'pgdb', 'Sybase', 'adodbapi',
              'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
              'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
              'MySQLdb', 'MySQLdb.connections',
              'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
              # old datetime equivalents
              'DateTime', 'DateTime.ISO',
              'mx', 'mx.DateTime', 'mx.DateTime.ISO',
              # email modules
              'email.Generator', 'email.Iterators', 'email.Utils',
          ],
      },
      'py2app': {
          'argv_emulation': 1,
          'iconfile': 'data/icons/suspended_sentence.icns',
#           'dist_dir': 'dist/suspended-sentence-%s' % version.VERSION_STR,
#           'bdist_base': 'build/bdist',
          'packages': [
              'logging', 'encodings', 'pygame', 'gamelib',
              'data',
          ],
          'excludes': ['numpy'],
      }},
      data_files=[
          # 'COPYRIGHT',
          'COPYING',
          'README.txt',
      ],
     )