2011-05-12 22:45:14 +02:00
|
|
|
from distutils.core import setup, Extension
|
|
|
|
|
2013-04-15 05:30:35 +02:00
|
|
|
VERSION = "0.6" # Remember to change README.rst when version changes.
|
2011-05-12 22:45:14 +02:00
|
|
|
|
|
|
|
try:
|
|
|
|
# Use Cython
|
|
|
|
from Cython.Distutils import build_ext
|
2011-05-12 23:08:37 +02:00
|
|
|
cmd = {"build_ext": build_ext}
|
2011-05-12 22:45:14 +02:00
|
|
|
ext = Extension(
|
|
|
|
"netfilterqueue",
|
|
|
|
sources=["netfilterqueue.pyx",],
|
|
|
|
libraries=["netfilter_queue"],
|
|
|
|
)
|
|
|
|
except ImportError:
|
|
|
|
# No Cython
|
2011-05-12 23:08:37 +02:00
|
|
|
cmd = {}
|
2011-05-12 22:45:14 +02:00
|
|
|
ext = Extension(
|
|
|
|
"netfilterqueue",
|
|
|
|
sources = ["netfilterqueue.c"],
|
|
|
|
libraries=["netfilter_queue"],
|
|
|
|
)
|
|
|
|
|
|
|
|
setup(
|
2011-05-12 23:08:37 +02:00
|
|
|
cmdclass = cmd,
|
2011-05-12 22:45:14 +02:00
|
|
|
ext_modules = [ext],
|
|
|
|
name="NetfilterQueue",
|
|
|
|
version=VERSION,
|
|
|
|
license="BSD",
|
|
|
|
author="Matthew Fox",
|
|
|
|
author_email="matthew@kerkhofftech.ca",
|
2011-05-12 22:49:22 +02:00
|
|
|
url="https://github.com/kti/python-netfilterqueue",
|
2011-05-12 22:45:14 +02:00
|
|
|
description="Python bindings for libnetfilter_queue",
|
2011-05-12 22:49:22 +02:00
|
|
|
long_description=open("README.rst").read(),
|
2011-05-12 22:45:14 +02:00
|
|
|
download_url="http://pypi.python.org/packages/source/N/NetfilterQueue/NetfilterQueue-%s.tar.gz" % VERSION,
|
|
|
|
classifiers = [
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
"License :: OSI Approved :: BSD License",
|
|
|
|
"Operating System :: POSIX :: Linux",
|
|
|
|
"Topic :: System :: Networking",
|
|
|
|
"Topic :: Security",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Telecommunications Industry",
|
|
|
|
"Programming Language :: Cython",
|
|
|
|
"Programming Language :: Python :: 2",
|
2015-05-16 09:25:44 +02:00
|
|
|
"Programming Language :: Python :: 3",
|
2011-05-12 22:45:14 +02:00
|
|
|
]
|
|
|
|
)
|