[Zodb-checkins] CVS: ZODB4/BDBStorage - setup.py:2.0

Barry Warsaw barry@wooz.org
Wed, 4 Dec 2002 14:38:11 -0500


Update of /cvs-repository/ZODB4/BDBStorage
In directory cvs.zope.org:/tmp/cvs-serv15916

Modified Files:
      Tag: 2.0
	setup.py 
Log Message:
setup.py for ZODB4


=== Added File ZODB4/BDBStorage/setup.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################

# Distuils setup.py simply for building the _helper extension.

import sys
from distutils.core import setup, Extension
from __init__ import __version__

# The _helper module is not compatible with anything before Python 2.2.2
if sys.hexversion < 0x02020200:
    raise RuntimeError, 'not compatible with Python < 2.2.2'

helper = Extension(name='_helper',
                   sources=['_helper.c'],
                   )

setup(name='BDBStorage',
      version=__version__,
      description='Berkeley storages for ZODB4',
      author='Zope Corporation',
      author_email='zodb-dev@zope.org',
      url='http://www.zope.org/Wikis/ZODB/BerkeleyStorage',
      packages=['BDBStorage', 'BDBStorage.tests'],
      ext_modules=[helper],
      )