2022-01-12 05:28:21 +01:00
|
|
|
from setuptools import setup, Extension
|
2011-05-12 22:45:14 +02:00
|
|
|
|
2017-01-31 08:44:23 +01:00
|
|
|
VERSION = "0.8.1" # Remember to change CHANGES.txt and netfilterqueue.pyx when version changes.
|
2011-05-12 22:45:14 +02:00
|
|
|
|
|
|
|
try:
|
|
|
|
# Use Cython
|
2022-01-12 05:28:21 +01:00
|
|
|
from Cython.Build import cythonize
|
|
|
|
ext_modules = cythonize(
|
|
|
|
Extension(
|
|
|
|
"netfilterqueue", ["netfilterqueue.pyx"], libraries=["netfilter_queue"]
|
|
|
|
),
|
|
|
|
compiler_directives={"language_level": "3str"},
|
|
|
|
)
|
2011-05-12 22:45:14 +02:00
|
|
|
except ImportError:
|
|
|
|
# No Cython
|
2022-01-12 05:28:21 +01:00
|
|
|
ext_modules = [
|
|
|
|
Extension("netfilterqueue", ["netfilterqueue.c"], libraries=["netfilter_queue"])
|
|
|
|
]
|
2011-05-12 22:45:14 +02:00
|
|
|
|
|
|
|
setup(
|
2022-01-12 05:28:21 +01:00
|
|
|
ext_modules=ext_modules,
|
2011-05-12 22:45:14 +02:00
|
|
|
name="NetfilterQueue",
|
|
|
|
version=VERSION,
|
2016-06-28 08:56:35 +02:00
|
|
|
license="MIT",
|
2011-05-12 22:45:14 +02:00
|
|
|
author="Matthew Fox",
|
2016-06-28 08:52:50 +02:00
|
|
|
author_email="matt@tansen.ca",
|
2022-01-12 05:28:21 +01:00
|
|
|
url="https://github.com/oremanj/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,
|
2022-01-12 05:28:21 +01:00
|
|
|
classifiers=[
|
2016-06-28 08:57:58 +02:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
2016-06-28 08:56:35 +02:00
|
|
|
"License :: OSI Approved :: MIT License",
|
2011-05-12 22:45:14 +02:00
|
|
|
"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
|
|
|
]
|
|
|
|
)
|