forked from zeek/pysubnettree
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
36 lines (29 loc) · 1004 Bytes
/
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
#! /usr/bin/env python
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.24-7", # Filled in automatically.
maintainer="The Bro Project",
maintainer_email="[email protected]",
license="BSD",
description=description,
py_modules=['SubnetTree'],
url="http://www.bro.org/sphinx/components/pysubnettree/README.html",
ext_modules = [
Extension("_SubnetTree",
sources=["SubnetTree.cc", "patricia.c", "SubnetTree_wrap.cc"],
depends=["SubnetTree.h", "patricia.h"]),
]
)