setup_main.py.in 1.3 KB
Newer Older
1
#!/usr/bin/env python3
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# Setup script (in the sdist or in tools/setup_main.py in the repository)

from setuptools import setup

cmdclass = {}
$extra_cmd

setup(
    name="pybind11",
    version="$version",
    download_url='https://github.com/pybind/pybind11/tarball/v$version',
    packages=[
        "pybind11",
        "pybind11.include.pybind11",
        "pybind11.include.pybind11.detail",
18
        "pybind11.include.pybind11.eigen",
19
        "pybind11.include.pybind11.stl",
20
        "pybind11.share.cmake.pybind11",
21
        "pybind11.share.pkgconfig",
22
23
    ],
    package_data={
24
        "pybind11": ["py.typed"],
25
26
        "pybind11.include.pybind11": ["*.h"],
        "pybind11.include.pybind11.detail": ["*.h"],
27
        "pybind11.include.pybind11.eigen": ["*.h"],
28
        "pybind11.include.pybind11.stl": ["*.h"],
29
        "pybind11.share.cmake.pybind11": ["*.cmake"],
30
        "pybind11.share.pkgconfig": ["*.pc"],
31
32
33
34
35
36
37
    },
    extras_require={
        "global": ["pybind11_global==$version"]
        },
    entry_points={
        "console_scripts": [
             "pybind11-config = pybind11.__main__:main",
38
39
40
        ],
        "pipx.run": [
             "pybind11 = pybind11.__main__:main",
41
42
43
        ],
        "cmake.modules": [
            "pybind11 = pybind11.share.cmake.pybind11",
44
45
46
47
        ]
    },
    cmdclass=cmdclass
)