forked from tav/tavutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·63 lines (55 loc) · 1.85 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#! /usr/bin/env python
# Public Domain (-) 2010-2011 The Tavutil Authors.
# See the Tavutil UNLICENSE file for details.
import sys
from distutils.command.build_ext import build_ext
from setuptools import Extension, setup
# ------------------------------------------------------------------------------
# Extensions
# ------------------------------------------------------------------------------
extensions = [
Extension(
"tavutil.lzf",
["tavutil/lzf.c", "tavutil/lzf/lzf_c.c", "tavutil/lzf/lzf_d.c"],
include_dirs=["tavutil/lzf"],
)
]
# TODO(tav): Disable the sandbox for now as it doesn't seem to work on OS X
# Lion.
#
# if sys.platform == 'darwin':
# extensions.append(
# Extension("tavutil.darwinsandbox", ["tavutil/darwinsandbox.c"])
# )
# ------------------------------------------------------------------------------
# Run Setup
# ------------------------------------------------------------------------------
setup(
name="tavutil",
author="tav",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: Public Domain",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: Cython",
"Programming Language :: Python"
],
cmdclass=dict(build_ext=build_ext),
description="A collection of utility modules",
ext_modules=extensions,
install_requires=[
"BeautifulSoup==3.2.0",
"ipaddr>=2.1.7",
"tornado>=1.2.1"
],
keywords=["async", "crypto", "sandbox", "utility", "redis", "zeroconf"],
license="Public Domain",
long_description=open('README.rst').read(),
packages=["tavutil"],
url="https://github.com/tav/tavutil",
version="1.0",
zip_safe=True
)