forked from tree-sitter/py-tree-sitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (40 loc) · 1.34 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
"""
Py-Tree-sitter
"""
from os import path
from platform import system
from setuptools import Extension, setup
with open(path.join(path.dirname(__file__), "README.md")) as f:
LONG_DESCRIPTION = f.read()
setup(
name="tree_sitter",
version="0.20.1",
maintainer="Max Brunsfeld",
maintainer_email="[email protected]",
author="Max Brunsfeld",
author_email="[email protected]",
url="https://github.com/tree-sitter/py-tree-sitter",
license="MIT",
platforms=["any"],
python_requires=">=3.3",
description="Python bindings to the Tree-sitter parsing library",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
classifiers=[
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Compilers",
"Topic :: Text Processing :: Linguistic",
],
packages=["tree_sitter"],
ext_modules=[
Extension(
"tree_sitter.binding",
["tree_sitter/core/lib/src/lib.c", "tree_sitter/binding.c"],
include_dirs=["tree_sitter/core/lib/include", "tree_sitter/core/lib/src"],
extra_compile_args=(
["-std=c99", "-Wno-unused-variable"] if system() != "Windows" else None
),
)
],
project_urls={"Source": "https://github.com/tree-sitter/py-tree-sitter"},
)