setup_main.py.in 915 B

123456789101112131415161718192021222324252627282930313233343536
  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.share.cmake.pybind11",
  16. ],
  17. package_data={
  18. "pybind11": ["py.typed", "*.pyi"],
  19. "pybind11.include.pybind11": ["*.h"],
  20. "pybind11.include.pybind11.detail": ["*.h"],
  21. "pybind11.share.cmake.pybind11": ["*.cmake"],
  22. },
  23. extras_require={
  24. "global": ["pybind11_global==$version"]
  25. },
  26. entry_points={
  27. "console_scripts": [
  28. "pybind11-config = pybind11.__main__:main",
  29. ]
  30. },
  31. cmdclass=cmdclass
  32. )