#!/usr/bin/env python

"""$URL: svn://svn/repos/trunk/dulcinea/setup.py $
$Id: setup.py 20913 2003-03-04 16:22:36Z dbinger $

Setup script for Dulcinea
"""

import os
from distutils import core
from distutils.extension import Extension
from quixote.qx_distutils import qx_build_py

kw = {'name': "Dulcinea",
      'version': "0.1",
      'description': ("A package of modules useful for developing "
                      "Quixote/ZODB applications."),
      'author': "MEMS Exchange",
      'author_email': "quixote@mems-exchange.org",
      'url': "http://www.mems-exchange.org/software/dulcinea/",

      'package_dir': {'dulcinea':'lib'},
      'packages': ['dulcinea',  'dulcinea.tools',
                   'dulcinea.ui', 'dulcinea.ui.form'],
      'cmdclass': {'build_py': qx_build_py},
     }

# If we're running Python 2.3, add extra information
if hasattr(core, 'setup_keywords'):
    if 'classifiers' in core.setup_keywords:
        kw['classifiers'] = ['Development Status :: 3 - Alpha',
          'Intended Audience :: Developers',
          'Operating System :: Unix',
          'Topic :: Software Development :: Libraries',
          ]
    if 'download_url' in core.setup_keywords:
        kw['download_url'] = ('http://www.mems-exchange.org/software/files'
                              '/dulcinea/Dulcinea-%s.tar.gz' % kw['version'])

core.setup(**kw)
