-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
27 lines (23 loc) · 931 Bytes
/
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
#!/usr/bin/env python
from setuptools import setup, Extension
yajl_sources = ['flojay/lloyd-yajl/src/' + file_ for file_ in \
('yajl.c', 'yajl_gen.c', 'yajl_alloc.c', 'yajl_lex.c', 'yajl_tree.c', \
'yajl_encode.c', 'yajl_version.c', 'yajl_buf.c', 'yajl_parser.c')]
flojay = Extension('flojay',
define_macros=[
('MAJOR_VERSION', '0'),
('MINOR_VERSION', '1')],
extra_compile_args=['--std=c99'],
include_dirs=['flojay/lloyd-yajl/src'],
sources=yajl_sources + ['flojay/flojay.c'])
setup(name='flojay',
version='0.1',
description='Streaming or event-based JSON parser based on yajl',
author='Robert Church',
author_email='[email protected]',
url='',
ext_modules=[flojay],
packages=['flojay'],
install_requires=[
'nose==1.1.2',
])