-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathsetup.py
38 lines (32 loc) · 1.04 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import sys
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension
dev_mode = False
tinydng_compile_args = []
if dev_mode:
tinydng_compile_args.append('-O0')
tinydng_compile_args.append('-g')
tinydng_compile_args.append('-fsanitize=address')
ext_modules = [
Pybind11Extension("tinydng_ext",
sorted(["python/python-bindings.cc"]),
include_dirs=['.'],
cxx_std=11,
extra_compile_args=tinydng_compile_args
),
]
setup(
name="tinydng",
packages=['python/tinydng'],
url="https://github.com/syoyo/tinydng",
description="Tiny DNG loader/saver",
long_description=open("./README.md", 'r', encoding='utf8').read(),
long_description_content_type='text/markdown',
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,
#python_requires=">=3.6",
)