You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
3.1 KiB

  1. #!/usr/bin/env python
  2. # Setup script for PyPI; use CMakeFile.txt to build the example application
  3. from setuptools import setup
  4. from pybind11 import __version__
  5. setup(
  6. name='pybind11',
  7. version=__version__,
  8. description='Seamless operability between C++11 and Python',
  9. author='Wenzel Jakob',
  10. author_email='wenzel.jakob@epfl.ch',
  11. url='https://github.com/wjakob/pybind11',
  12. download_url='https://github.com/wjakob/pybind11/tarball/v' + __version__,
  13. packages=['pybind11'],
  14. license='BSD',
  15. headers=[
  16. 'include/pybind11/attr.h',
  17. 'include/pybind11/cast.h',
  18. 'include/pybind11/complex.h',
  19. 'include/pybind11/descr.h',
  20. 'include/pybind11/eigen.h',
  21. 'include/pybind11/numpy.h',
  22. 'include/pybind11/pybind11.h',
  23. 'include/pybind11/stl.h',
  24. 'include/pybind11/stl_bind.h',
  25. 'include/pybind11/common.h',
  26. 'include/pybind11/functional.h',
  27. 'include/pybind11/operators.h',
  28. 'include/pybind11/pytypes.h',
  29. 'include/pybind11/typeid.h'
  30. ],
  31. classifiers=[
  32. 'Development Status :: 5 - Production/Stable',
  33. 'Intended Audience :: Developers',
  34. 'Topic :: Software Development :: Libraries :: Python Modules',
  35. 'Topic :: Utilities',
  36. 'Programming Language :: C++',
  37. 'Programming Language :: Python :: 2.7',
  38. 'Programming Language :: Python :: 3',
  39. 'Programming Language :: Python :: 3.2',
  40. 'Programming Language :: Python :: 3.3',
  41. 'Programming Language :: Python :: 3.4',
  42. 'Programming Language :: Python :: 3.5',
  43. 'License :: OSI Approved :: BSD License',
  44. ],
  45. keywords='C++11, Python bindings',
  46. long_description="""pybind11 is a lightweight header library that exposes
  47. C++ types in Python and vice versa, mainly to create Python bindings of
  48. existing C++ code. Its goals and syntax are similar to the excellent
  49. Boost.Python library by David Abrahams: to minimize boilerplate code in
  50. traditional extension modules by inferring type information using compile-time
  51. introspection.
  52. The main issue with Boost.Python-and the reason for creating such a similar
  53. project-is Boost. Boost is an enormously large and complex suite of utility
  54. libraries that works with almost every C++ compiler in existence. This
  55. compatibility has its cost: arcane template tricks and workarounds are
  56. necessary to support the oldest and buggiest of compiler specimens. Now that
  57. C++11-compatible compilers are widely available, this heavy machinery has
  58. become an excessively large and unnecessary dependency.
  59. Think of this library as a tiny self-contained version of Boost.Python with
  60. everything stripped away that isn't relevant for binding generation. Without
  61. comments, the core header files only require ~2.5K lines of code and depend on
  62. Python (2.7 or 3.x) and the C++ standard library. This compact implementation
  63. was possible thanks to some of the new C++11 language features (specifically:
  64. tuples, lambda functions and variadic templates). Since its creation, this
  65. library has grown beyond Boost.Python in many ways, leading to dramatically
  66. simpler binding code in many common situations.""")