This repository has been archived by the owner on Sep 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·67 lines (59 loc) · 1.94 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
64
65
66
67
#! /usr/bin/env python
# Public Domain (-) 2010-2014 The Tavutil Authors.
# See the Tavutil UNLICENSE file for details.
import os
import sys
from distutils.command.build_ext import build_ext
from setuptools import Extension, setup
# ------------------------------------------------------------------------------
# Extensions
# ------------------------------------------------------------------------------
if os.name == 'posix':
extensions = [
Extension(
"tavutil.lzf",
["tavutil/lzf.c", "tavutil/lzf/lzf_c.c", "tavutil/lzf/lzf_d.c"],
include_dirs=["tavutil/lzf"],
)
]
else:
extensions = []
# 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.3",
zip_safe=True
)