forked from chriso/gauged
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (27 loc) · 1.01 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
'''
Gauged - https://github.com/chriso/gauged
Copyright 2014 (c) Chris O'Hara <[email protected]>
'''
import re
from distutils.core import setup, Extension
cflags = ['-O3', '-std=c99', '-pedantic', '-Wall', '-Wextra', '-pthread']
gauged = Extension('libgauged',
sources=[
'lib/%s.c' % src for src in ('array', 'hash', 'sort', 'map', 'writer')],
include_dirs=['include'],
extra_compile_args=cflags)
with open('gauged/version.py', 'r') as handle:
version = re.search(
r'__version__ = \'([^\']+)\'', handle.read(), re.M).group(1)
setup(
name='gauged',
version=version,
author='Chris O\'Hara',
author_email='[email protected]',
description='A fast, append-only storage layer for numeric data that changes over time',
license='MIT',
url='https://github.com/chriso/gauged',
ext_modules=[gauged],
packages=['gauged', 'gauged.errors', 'gauged.results',
'gauged.drivers', 'gauged.structures']
)