mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
fd61f5038e
* feat: setup.py redesign and helpers * refactor: simpler design with two outputs * refactor: helper file update and Windows support * fix: review points from @YannickJadoul * refactor: fixes to naming and more docs * feat: more customization points * feat: add entry point pybind11-config * refactor: Try Extension-focused method * refactor: rename alt/inplace to global * fix: allow usage with git modules, better docs * feat: global as an extra (@YannickJadoul's suggestion) * feat: single version location * fix: remove the requirement that setuptools must be imported first * fix: some review points from @wjacob * fix: use .in, add procedure to docs * refactor: avoid monkeypatch copy * docs: minor typos corrected * fix: minor points from @YannickJadoul * fix: typo on Windows C++ mode * fix: MSVC 15 update 3+ have c++14 flag See <https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2019> * docs: discuss making SDists by hand * ci: use pep517.build instead of manual setup.py * refactor: more comments from @YannickJadoul * docs: updates from @ktbarrett * fix: change to newly recommended tool instead of pep517.build This was intended as a proof of concept; build seems to be the correct replacement. See https://github.com/pypa/pep517/pull/83 * docs: updates from @wjakob * refactor: dual version locations * docs: typo spotted by @wjakob
36 lines
872 B
Python
36 lines
872 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# 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",
|
|
"pybind11.share.cmake.pybind11",
|
|
],
|
|
package_data={
|
|
"pybind11.include.pybind11": ["*.h"],
|
|
"pybind11.include.pybind11.detail": ["*.h"],
|
|
"pybind11.share.cmake.pybind11": ["*.cmake"],
|
|
},
|
|
extras_require={
|
|
"global": ["pybind11_global==$version"]
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"pybind11-config = pybind11.__main__:main",
|
|
]
|
|
},
|
|
cmdclass=cmdclass
|
|
)
|