forked from nodejs/http-parser
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (25 loc) · 679 Bytes
/
setup.py
File metadata and controls
29 lines (25 loc) · 679 Bytes
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
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
import pkg_resources
data_dir = pkg_resources.resource_filename("autowrap", "data_files/autowrap")
ext = Extension(
"parser",
sources=['parser.cpp'],
language="c++",
include_dirs=['.', data_dir],
gdb_debug=True,
compiler_directives=dict(
# boundscheck=False,
# wraparound=False,
embedsignature=True,
# profile=True,
linetrace=True,
language_level=3,
),
)
setup(cmdclass={'build_ext':build_ext},
name="parser",
# packages=['c_parser', 'parser'],
version="0.0.1",
ext_modules=[ext, ext]
)