-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
46 lines (38 loc) · 1.09 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
39
40
41
42
43
44
45
46
import sys
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension
# Should be False in the release
dev_mode = False
jagger_compile_args=[
]
if sys.platform.startswith('win32'):
# Assume MSVC
pass
else:
jagger_compile_args.append("-std=c++11")
if dev_mode:
jagger_compile_args.append('-O0')
jagger_compile_args.append('-g')
jagger_compile_args.append('-fsanitize=address')
ext_modules = [
Pybind11Extension("jagger_ext", ["jagger/python-binding-jagger.cc"],
include_dirs=['.'],
extra_compile_args=jagger_compile_args,
),
]
setup(
name="jagger",
packages=['jagger'],
# version is now set by setuptools_scm
#version="v0.1.17",
ext_modules=ext_modules,
long_description=open("./README.md", 'r', encoding='utf8').read(),
long_description_content_type='text/markdown',
# NOTE: entry_points are set in pyproject.toml
#entry_points={
# 'console_scripts': [
# "jagger=jagger.main:main"
# ]
#},
license_files= ('LICENSE', 'jagger.BSD', 'jagger.GPL', 'jagger.LGPL'),
install_requires=[])