-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
32 lines (26 loc) · 1013 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
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']
src = ('array', 'hash', 'sort', 'map', 'writer')
gauged = Extension('_gauged', sources=['lib/%s.c' % f for f in src],
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']
)