-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
40 lines (36 loc) · 1.03 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
# -*- Mode: Python; coding: iso-8859-1 -*-
from __future__ import division, print_function, absolute_import
# Standard libraries.
from distutils.core import Extension, setup
# Third party libraries.
from Cython.Build import cythonize
VERSION = "2.2.2"
setup(
name="avl",
version=VERSION,
description="AVL Tree Objects for Python",
author="Samual M Rushing",
author_email="[hidden]",
license="BSD",
url="https://github.com/samrushing/avl",
libraries=[("avl", {"sources": ["avl.c"]})],
ext_modules=cythonize(
[
Extension(
"avl",
["avl_module.pyx"],
include_dirs=["./lib/"],
# extra_compile_args=["-g"],
# extra_link_args=["-g"],
)
],
compiler_directives={
"embedsignature": True,
# "profile": True,
"c_string_type": "str",
"c_string_encoding": "utf-8",
},
compile_time_env={"VERSION": VERSION},
gdb_debug=True,
),
)