forked from HdrHistogram/HdrHistogram_py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (24 loc) · 815 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
import sys
from setuptools import setup
from setuptools import Extension
from setuptools.command.test import test
class Tox(test):
def initialize_options(self):
test.initialize_options(self)
self.tox_args = None
def finalize_options(self):
test.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
sys.exit(tox.cmdline())
if __name__ == '__main__':
setup(setup_requires=['pbr'], pbr=True,
install_requires=['future>=0.15.2'],
keywords='hdrhistogram hdr histogram high dynamic range',
tests_require=['tox'],
cmdclass={'test': Tox},
ext_modules=[Extension('pyhdrh',
sources=['src/python-codec.c'])]
)