setup_main.py.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # Setup script (in the sdist or in tools/setup_main.py in the repository)
  4. from setuptools import setup
  5. cmdclass = {}
  6. $extra_cmd
  7. setup(
  8. name="pybind11",
  9. version="$version",
  10. download_url='https://github.com/pybind/pybind11/tarball/v$version',
  11. packages=[
  12. "pybind11",
  13. "pybind11.include.pybind11",
  14. "pybind11.include.pybind11.detail",
  15. "pybind11.include.pybind11.stl",
  16. "pybind11.share.cmake.pybind11",
  17. ],
  18. package_data={
  19. "pybind11": ["py.typed", "*.pyi"],
  20. "pybind11.include.pybind11": ["*.h"],
  21. "pybind11.include.pybind11.detail": ["*.h"],
  22. "pybind11.include.pybind11.stl": ["*.h"],
  23. "pybind11.share.cmake.pybind11": ["*.cmake"],
  24. },
  25. extras_require={
  26. "global": ["pybind11_global==$version"]
  27. },
  28. entry_points={
  29. "console_scripts": [
  30. "pybind11-config = pybind11.__main__:main",
  31. ],
  32. "pipx.run": [
  33. "pybind11 = pybind11.__main__:main",
  34. ]
  35. },
  36. cmdclass=cmdclass
  37. )