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.

74 lines
3.2 KiB

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