|
1 | 1 | # Adapted from https://github.com/pybind/python_example/blob/master/setup.py |
2 | 2 | import sys |
3 | 3 |
|
4 | | -#from pybind11 import get_cmake_dir |
| 4 | +# from pybind11 import get_cmake_dir |
5 | 5 | # Available at setup time due to pyproject.toml |
6 | | -from pybind11.setup_helpers import Pybind11Extension#, build_ext |
| 6 | +from pybind11.setup_helpers import Pybind11Extension # , build_ext |
7 | 7 | from setuptools import setup |
8 | 8 |
|
9 | 9 | try: |
|
22 | 22 | # reproducible builds (https://github.com/pybind/python_example/pull/53) |
23 | 23 |
|
24 | 24 | ext_modules = [ |
25 | | - Pybind11Extension("tinyobjloader", |
| 25 | + Pybind11Extension( |
| 26 | + "tinyobjloader", |
26 | 27 | sorted(["python/bindings.cc", "python/tiny_obj_loader.cc"]), |
27 | 28 | # Example: passing in the version to the compiled code |
28 | | - define_macros = [('VERSION_INFO', __version__)], |
| 29 | + define_macros=[("VERSION_INFO", __version__)], |
29 | 30 | cxx_std=11, |
30 | | - ), |
| 31 | + ), |
31 | 32 | ] |
32 | 33 |
|
33 | 34 | setup( |
34 | 35 | name="tinyobjloader", |
35 | | - packages=['python'], |
36 | | - #version=__version__, |
| 36 | + packages=["python"], |
| 37 | + # version=__version__, |
37 | 38 | author="Syoyo Fujita", |
38 | 39 | author_email="syoyo@lighttransport.com", |
39 | 40 | url="https://github.com/tinyobjloader/tinyobjloader", |
40 | | - #project_urls={ |
| 41 | + # project_urls={ |
41 | 42 | # "Issue Tracker": "https://github.com/tinyobjloader/tinyobjloader/issues", |
42 | | - #}, |
| 43 | + # }, |
43 | 44 | description="Tiny but powerful Wavefront OBJ loader", |
44 | | - long_description_content_type='text/markdown', |
| 45 | + long_description_content_type="text/markdown", |
45 | 46 | classifiers=[ |
46 | 47 | "Development Status :: 5 - Production/Stable", |
47 | 48 | "Intended Audience :: Developers", |
|
56 | 57 | "Programming Language :: Python :: 3", |
57 | 58 | ], |
58 | 59 | ext_modules=ext_modules, |
59 | | - #extras_require={"test": "pytest"}, |
| 60 | + # extras_require={"test": "pytest"}, |
60 | 61 | # Currently, build_ext only provides an optional "highest supported C++ |
61 | 62 | # level" feature, but in the future it may provide more features. |
62 | 63 | # cmdclass={"build_ext": build_ext}, |
63 | | - #zip_safe=False, |
64 | | - #python_requires=">=3.6", |
| 64 | + # zip_safe=False, |
| 65 | + # python_requires=">=3.6", |
65 | 66 | ) |
0 commit comments