setup.py 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Copyright (c) 2011, Andres Moreira <andres@andresmoreira.com>
  2. # All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms, with or without
  5. # modification, are permitted provided that the following conditions are met:
  6. # * Redistributions of source code must retain the above copyright
  7. # notice, this list of conditions and the following disclaimer.
  8. # * Redistributions in binary form must reproduce the above copyright
  9. # notice, this list of conditions and the following disclaimer in the
  10. # documentation and/or other materials provided with the distribution.
  11. # * Neither the name of the authors nor the
  12. # names of its contributors may be used to endorse or promote products
  13. # derived from this software without specific prior written permission.
  14. #
  15. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  16. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  17. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. # DISCLAIMED. IN NO EVENT SHALL ANDRES MOREIRA BE LIABLE FOR ANY
  19. # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  20. # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  21. # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  22. # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  23. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  24. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. from distutils.core import setup, Extension
  26. version = '0.5'
  27. long_description = """
  28. Python bindings for the snappy compression library from Google.
  29. More details about Snappy library: http://code.google.com/p/snappy
  30. """
  31. snappymodule = Extension('_snappy',
  32. libraries=['snappy'],
  33. sources=['snappymodule.cc', 'crc32c.c'])
  34. setup(
  35. name='python-snappy',
  36. version=version,
  37. author='Andres Moreira',
  38. author_email='andres@andresmoreira.com',
  39. url='http://github.com/andrix/python-snappy',
  40. description='Python library for the snappy compression library from Google',
  41. long_description=long_description,
  42. keywords='snappy, compression, google',
  43. license='BSD',
  44. classifiers=['Development Status :: 4 - Beta',
  45. 'Topic :: Internet',
  46. 'Topic :: Software Development',
  47. 'Topic :: Software Development :: Libraries',
  48. 'Topic :: System :: Archiving :: Compression',
  49. 'License :: OSI Approved :: BSD License',
  50. 'Intended Audience :: Developers',
  51. 'Intended Audience :: System Administrators',
  52. 'Operating System :: MacOS :: MacOS X',
  53. # 'Operating System :: Microsoft :: Windows', -- Not tested yet
  54. 'Operating System :: POSIX',
  55. 'Programming Language :: Python :: 2.5',
  56. 'Programming Language :: Python :: 2.6',
  57. 'Programming Language :: Python :: 2.7',
  58. 'Programming Language :: Python :: 3',
  59. 'Programming Language :: Python :: 3.0',
  60. 'Programming Language :: Python :: 3.1',
  61. 'Programming Language :: Python :: 3.2',
  62. ],
  63. py_modules=['snappy'],
  64. ext_modules=[snappymodule]
  65. )