-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·39 lines (32 loc) · 1.04 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
#! /usr/bin/env python
# pylint: disable=invalid-name,missing-docstring
import platform
from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
if platform.system() == 'Windows':
extra_compile_args = ['/GR-']
else:
extra_compile_args = ['-fno-rtti', '-fno-exceptions']
extensions = [
Extension(
name='pyglsl_parser.parser',
sources=['compat.cpp',
'pyglsl_parser/parser.pyx',
'glsl-parser/ast.cpp',
'glsl-parser/lexer.cpp',
'glsl-parser/parser.cpp',
'glsl-parser/util.cpp'],
language='c++',
extra_compile_args=extra_compile_args,
)
]
setup(name='pyglsl_parser',
packages=['pyglsl_parser'],
version='0.6.2',
test_suite='test',
description='Python wrapper around glsl-parser',
url='https://github.com/nicholasbishop/pyglsl_parser',
author='Nicholas Bishop',
author_email='nicholasbishop@gmail.com',
ext_modules=cythonize(extensions))