blob: 691a51a530bc66238d3a0d156a58447e4c71f29e [file] [log] [blame]
Wenzel Jakob929fd7e2015-10-15 18:24:12 +02001#!/usr/bin/env python
2
3# Setup script for PyPI; use CMakeFile.txt to build the example application
4
5from setuptools import setup
6
7setup(
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 Jakob678d7872016-01-17 22:36:41 +010020 'include/pybind11/descr.h',
Wenzel Jakob929fd7e2015-10-15 18:24:12 +020021 '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 Jakobb456ec72015-10-15 22:43:55 +020041 'Programming Language :: Python :: 3.5',
Wenzel Jakob929fd7e2015-10-15 18:24:12 +020042 'License :: OSI Approved :: BSD License',
43 ],
44 keywords='C++11, Python bindings',
45 long_description="""pybind11 is a lightweight header library that exposes
46C++ types in Python and vice versa, mainly to create Python bindings of
47existing C++ code. Its goals and syntax are similar to the excellent
48Boost.Python library by David Abrahams: to minimize boilerplate code in
49traditional extension modules by inferring type information using compile-time
50introspection.
51
John Kirkhamc40f8c72015-12-04 16:21:23 -050052The main issue with Boost.Python-and the reason for creating such a similar
John Kirkhamdc978332015-12-04 16:22:25 -050053project-is Boost. Boost is an enormously large and complex suite of utility
Wenzel Jakob929fd7e2015-10-15 18:24:12 +020054libraries that works with almost every C++ compiler in existence. This
55compatibility has its cost: arcane template tricks and workarounds are
56necessary to support the oldest and buggiest of compiler specimens. Now that
57C++11-compatible compilers are widely available, this heavy machinery has
58become an excessively large and unnecessary dependency.
59
60Think of this library as a tiny self-contained version of Boost.Python with
Wenzel Jakob678d7872016-01-17 22:36:41 +010061everything stripped away that isn't relevant for binding generation. The core
62header files only require ~2.5K lines of code and depend on Python (2.7 or 3.x)
63and the C++ standard library. This compact implementation was possible thanks
64to some of the new C++11 language features (specifically: tuples, lambda
65functions and variadic templates). Since its creation, this library has grown
66beyond Boost.Python in many ways, leading to dramatically simpler binding code
67in many common situations.""")