-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minimize pybind11_mypy_demo to bare minimum
- Loading branch information
1 parent
e681915
commit 5012113
Showing
5 changed files
with
56 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,18 @@ | ||
import sys | ||
|
||
from pybind11 import get_cmake_dir | ||
# Available at setup time due to pyproject.toml | ||
from pybind11.setup_helpers import Pybind11Extension, build_ext | ||
# pybind11 is available at setup time due to pyproject.toml | ||
from pybind11.setup_helpers import Pybind11Extension | ||
from setuptools import setup | ||
|
||
__version__ = "0.0.1" | ||
|
||
# The main interface is through Pybind11Extension. | ||
# * You can add cxx_std=11/14/17, and then build_ext can be removed. | ||
# * You can set include_pybind11=false to add the include directory yourself, | ||
# say from a submodule. | ||
# | ||
# Note: | ||
# Sort input source files if you glob sources to ensure bit-for-bit | ||
# reproducible builds (https://github.com/pybind/python_example/pull/53) | ||
|
||
# Documentation: https://pybind11.readthedocs.io/en/stable/compiling.html | ||
ext_modules = [ | ||
Pybind11Extension( | ||
"pybind11_mypy_demo", | ||
["src/main.cpp"], | ||
# Example: passing in the version to the compiled code | ||
define_macros=[('VERSION_INFO', __version__)], | ||
cxx_std=17, | ||
), | ||
] | ||
|
||
setup( | ||
name="pybind11-mypy-demo", | ||
version=__version__, | ||
author="Sergei Izmailov", | ||
author_email="sergei.a.izmailov@gmail.com", # Subject to change | ||
url="https://github.com/sizmailov/pybind11-mypy-demo", # Subject to change | ||
description="A demo project using pybind11 to test mypy stubgen", | ||
long_description="", | ||
version="0.0.1", | ||
ext_modules=ext_modules, | ||
extras_require={"test": "pytest"}, | ||
# Currently, build_ext only provides an optional "highest supported C++ | ||
# level" feature, but in the future it may provide more features. | ||
cmdclass={"build_ext": build_ext}, | ||
zip_safe=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters