setup_main.py.in 1.11 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.stl",
19
        "pybind11.share.cmake.pybind11",
20
        "pybind11.share.pkgconfig",
21
22
    ],
    package_data={
23
        "pybind11": ["py.typed"],
24
25
        "pybind11.include.pybind11": ["*.h"],
        "pybind11.include.pybind11.detail": ["*.h"],
26
        "pybind11.include.pybind11.stl": ["*.h"],
27
        "pybind11.share.cmake.pybind11": ["*.cmake"],
28
        "pybind11.share.pkgconfig": ["*.pc"],
29
30
31
32
33
34
35
    },
    extras_require={
        "global": ["pybind11_global==$version"]
        },
    entry_points={
        "console_scripts": [
             "pybind11-config = pybind11.__main__:main",
36
37
38
        ],
        "pipx.run": [
             "pybind11 = pybind11.__main__:main",
39
40
41
42
        ]
    },
    cmdclass=cmdclass
)