forked from zeek/pysubnettree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (41 loc) · 1.43 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
#! /usr/bin/env python3
import sys
import os
cflags = os.environ.get("CFLAGS", "")
os.environ["CFLAGS"] = cflags + " -fno-strict-aliasing"
from setuptools import setup
from distutils.core import Extension
description = """
The PySubnetTree package provides a Python data structure SubnetTree
that maps subnets given in CIDR notation (incl. corresponding IPv6
versions) to Python objects. Lookups are performed by longest-prefix
matching.
"""
with open('README') as file:
long_description = file.read()
setup(name="pysubnettree",
version="0.36-5", # Filled in automatically.
maintainer="The Zeek Project",
maintainer_email="[email protected]",
license="BSD",
description=description,
py_modules=['SubnetTree'],
url="https://github.com/zeek/pysubnettree",
ext_modules = [
Extension("_SubnetTree",
sources=["SubnetTree.cc", "patricia.c", "SubnetTree_wrap.cc"],
depends=["include/SubnetTree.h", "include/patricia.h"],
include_dirs=["include/"])
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3',
'Topic :: System :: Networking',
'Topic :: Utilities',
],
)