-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·64 lines (55 loc) · 2.15 KB
/
setup.py
File metadata and controls
executable file
·64 lines (55 loc) · 2.15 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
try:
import setuptools
except ImportError:
from distutils.core import setup
else:
from setuptools import setup
from distutils.core import Extension
from Cython.Build import cythonize
import os
topdir = os.path.dirname(os.path.abspath(__file__))
buffer_ext = Extension("grakopp.buffer", ["python/grakopp/buffer.pyx"], include_dirs=[topdir + "/include"],
language = "c++",
extra_compile_args = ["-std=c++11"])
ast_ext = Extension("grakopp.ast", ["python/grakopp/ast.pyx"], include_dirs=[topdir + "/include"],
language = "c++",
extra_compile_args = ["-std=c++11"])
setup(name="grakopp",
version="0.1.0",
description="Grako++ is a packrat parser runtime for Grako, written in C++.",
author="Marcus Brinkmann",
author_email="m.brinkmann@semantics.de",
url="https://github.com/lambdafu/grakopp",
keywords="grako parser peg",
long_description=open("README.rst").read(),
license="BSD",
zip_safe=False,
install_requires=["grako", "cython>=0.21"],
entry_points={
"console_scripts": [
"grakopp = grakopp.tool:main",
]
},
package_dir={"": "python"},
packages=["grakopp", "grakopp.codegen"],
package_data = { "grakopp" : ["*.pxd", "*.pyx"] },
ext_modules = cythonize([ast_ext, buffer_ext]),
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: C++",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Compilers",
"Topic :: Software Development :: Interpreters",
"Topic :: Text Processing :: General"
]
)