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=[ |
| 18 | 'include/pybind11/cast.h', |
| 19 | 'include/pybind11/complex.h', |
Wenzel Jakob | 678d787 | 2016-01-17 22:36:41 +0100 | [diff] [blame^] | 20 | 'include/pybind11/descr.h', |
Wenzel Jakob | 929fd7e | 2015-10-15 18:24:12 +0200 | [diff] [blame] | 21 | 'include/pybind11/numpy.h', |
| 22 | 'include/pybind11/pybind11.h', |
| 23 | 'include/pybind11/stl.h', |
| 24 | 'include/pybind11/common.h', |
| 25 | 'include/pybind11/functional.h', |
| 26 | 'include/pybind11/operators.h', |
| 27 | 'include/pybind11/pytypes.h', |
| 28 | 'include/pybind11/typeid.h' |
| 29 | ], |
| 30 | classifiers=[ |
| 31 | 'Development Status :: 5 - Production/Stable', |
| 32 | 'Intended Audience :: Developers', |
| 33 | 'Topic :: Software Development :: Libraries :: Python Modules', |
| 34 | 'Topic :: Utilities', |
| 35 | 'Programming Language :: C++', |
| 36 | 'Programming Language :: Python :: 2.7', |
| 37 | 'Programming Language :: Python :: 3', |
| 38 | 'Programming Language :: Python :: 3.2', |
| 39 | 'Programming Language :: Python :: 3.3', |
| 40 | 'Programming Language :: Python :: 3.4', |
Wenzel Jakob | b456ec7 | 2015-10-15 22:43:55 +0200 | [diff] [blame] | 41 | 'Programming Language :: Python :: 3.5', |
Wenzel Jakob | 929fd7e | 2015-10-15 18:24:12 +0200 | [diff] [blame] | 42 | 'License :: OSI Approved :: BSD License', |
| 43 | ], |
| 44 | keywords='C++11, Python bindings', |
| 45 | long_description="""pybind11 is a lightweight header library that exposes |
| 46 | C++ types in Python and vice versa, mainly to create Python bindings of |
| 47 | existing C++ code. Its goals and syntax are similar to the excellent |
| 48 | Boost.Python library by David Abrahams: to minimize boilerplate code in |
| 49 | traditional extension modules by inferring type information using compile-time |
| 50 | introspection. |
| 51 | |
John Kirkham | c40f8c7 | 2015-12-04 16:21:23 -0500 | [diff] [blame] | 52 | 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] | 53 | 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] | 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 | |
| 60 | Think of this library as a tiny self-contained version of Boost.Python with |
Wenzel Jakob | 678d787 | 2016-01-17 22:36:41 +0100 | [diff] [blame^] | 61 | everything stripped away that isn't relevant for binding generation. The core |
| 62 | header files only require ~2.5K lines of code and depend on Python (2.7 or 3.x) |
| 63 | and the C++ standard library. This compact implementation was possible thanks |
| 64 | to some of the new C++11 language features (specifically: tuples, lambda |
| 65 | functions and variadic templates). Since its creation, this library has grown |
| 66 | beyond Boost.Python in many ways, leading to dramatically simpler binding code |
| 67 | in many common situations.""") |