setup.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. from distutils.core import setup
  3. # from distutils.extension import Extension
  4. # from Cython.Distutils import build_ext
  5. import sys
  6. kwds = {'long_description': open('README.txt').read()}
  7. if sys.version_info[:2] < (2, 6):
  8. raise Exception('This version of bitstring needs Python 2.6 or later. '
  9. 'For Python 2.4 / 2.5 please use bitstring version 1.0 instead.')
  10. # macros = [('PYREX_WITHOUT_ASSERTIONS', None)]
  11. # ext_modules = [Extension('bitstring', ["bitstring.pyx"], define_macros=macros)]
  12. setup(name='bitstring',
  13. version='3.1.3',
  14. description='Simple construction, analysis and modification of binary data.',
  15. author='Scott Griffiths',
  16. author_email='scott@griffiths.name',
  17. url='http://python-bitstring.googlecode.com',
  18. download_url='http://python-bitstring.googlecode.com',
  19. license='The MIT License: http://www.opensource.org/licenses/mit-license.php',
  20. # cmdclass = {'build_ext': build_ext},
  21. # ext_modules = ext_modules,
  22. py_modules=['bitstring'],
  23. platforms='all',
  24. classifiers = [
  25. 'Development Status :: 5 - Production/Stable',
  26. 'Intended Audience :: Developers',
  27. 'Operating System :: OS Independent',
  28. 'License :: OSI Approved :: MIT License',
  29. 'Programming Language :: Python :: 2.6',
  30. 'Programming Language :: Python :: 2.7',
  31. 'Programming Language :: Python :: 3',
  32. 'Programming Language :: Python :: 3.0',
  33. 'Programming Language :: Python :: 3.1',
  34. 'Programming Language :: Python :: 3.2',
  35. 'Programming Language :: Python :: 3.3',
  36. 'Topic :: Software Development :: Libraries :: Python Modules',
  37. ],
  38. **kwds
  39. )