Wenzel Jakob | 929fd7e | 2015-10-15 18:24:12 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Setup script for PyPI; use CMakeFile.txt to build the example application |
| 4 | |
| 5 | from setuptools import setup |
| 6 | |
| 7 | setup( |
| 8 | name='pybind11', |
| 9 | version='1.0', |
| 10 | description='Seamless operability between C++11 and Python', |
| 11 | author='Wenzel Jakob', |
| 12 | author_email='wenzel@inf.ethz.ch', |
| 13 | url='https://github.com/wjakob/pybind11', |
| 14 | download_url='https://github.com/wjakob/pybind11/tarball/v1.0', |
| 15 | packages=[], |
| 16 | license='BSD', |
| 17 | headers=[ |
Wenzel Jakob | 48548ea | 2016-01-17 22:36:44 +0100 | [diff] [blame^] | 18 | 'include/pybind11/attr.h', |
Wenzel Jakob | 929fd7e | 2015-10-15 18:24:12 +0200 | [diff] [blame] | 19 | 'include/pybind11/cast.h', |
| 20 | 'include/pybind11/complex.h', |
Wenzel Jakob | 678d787 | 2016-01-17 22:36:41 +0100 | [diff] [blame] | 21 | 'include/pybind11/descr.h', |
Wenzel Jakob | 929fd7e | 2015-10-15 18:24:12 +0200 | [diff] [blame] | 22 | 'include/pybind11/numpy.h', |
| 23 | 'include/pybind11/pybind11.h', |
| 24 | 'include/pybind11/stl.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', |
Wenzel Jakob | b456ec7 | 2015-10-15 22:43:55 +0200 | [diff] [blame] | 42 | 'Programming Language :: Python :: 3.5', |
Wenzel Jakob | 929fd7e | 2015-10-15 18:24:12 +0200 | [diff] [blame] | 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 | |
John Kirkham | c40f8c7 | 2015-12-04 16:21:23 -0500 | [diff] [blame] | 53 | The main issue with Boost.Python-and the reason for creating such a similar |
John Kirkham | dc97833 | 2015-12-04 16:22:25 -0500 | [diff] [blame] | 54 | project-is Boost. Boost is an enormously large and complex suite of utility |
Wenzel Jakob | 929fd7e | 2015-10-15 18:24:12 +0200 | [diff] [blame] | 55 | libraries that works with almost every C++ compiler in existence. This |
| 56 | compatibility has its cost: arcane template tricks and workarounds are |
| 57 | necessary to support the oldest and buggiest of compiler specimens. Now that |
| 58 | C++11-compatible compilers are widely available, this heavy machinery has |
| 59 | become an excessively large and unnecessary dependency. |
| 60 | |
| 61 | Think of this library as a tiny self-contained version of Boost.Python with |
Wenzel Jakob | 48548ea | 2016-01-17 22:36:44 +0100 | [diff] [blame^] | 62 | everything stripped away that isn't relevant for binding generation. Without |
| 63 | comments, the core header files only require ~2.5K lines of code and depend on |
| 64 | Python (2.7 or 3.x) and the C++ standard library. This compact implementation |
| 65 | was possible thanks to some of the new C++11 language features (specifically: |
| 66 | tuples, lambda functions and variadic templates). Since its creation, this |
| 67 | library has grown beyond Boost.Python in many ways, leading to dramatically |
| 68 | simpler binding code in many common situations.""") |