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