OPT_DIRS += src
endif
-SUBDIRS = include lib doc man $(OPT_DIRS)
+SUBDIRS = include lib doc man python $(OPT_DIRS)
pkgconfig_DATA = libnl-3.1.pc \
libnl-route-3.1.pc \
AC_CONFIG_FILES([Makefile doc/Doxyfile doc/Makefile lib/Makefile
include/Makefile src/Makefile src/lib/Makefile man/Makefile
libnl-3.1.pc libnl-route-3.1.pc libnl-genl-3.1.pc libnl-nf-3.1.pc
+ python/Makefile python/setup.py python/netlink/Makefile
+ python/netlink/route/Makefile
include/netlink/version.h])
AC_OUTPUT
build
capi_wrap.c
capi.py
+setup.py
--- /dev/null
+# -*- Makefile -*-
+
+SUBDIRS = netlink
--- /dev/null
+
+***************************************************************************
+
+NOTE: The python wrapper is experimental and may or may not work.
+
+***************************************************************************
+
+For the brave:
+
+ (requires an installed libnl)
+ - $ python ./setup.py build
+ - $ sudo python ./setup.py install
--- /dev/null
+# -*- Makefile -*-
+
+SUBDIRS = route
+
+EXTRA_DIST = \
+ capi.i \
+ fixes.h \
+ __init__.py \
+ core.py \
+ util.py
--- /dev/null
+# -*- Makefile -*-
+
+EXTRA_DIST = \
+ capi.i \
+ __init__.py \
+ address.py \
+ link.py \
+ tc.py \
+ links/__init__.py \
+ links/dummy.py \
+ links/inet.py \
+ links/vlan.py \
+ qdisc/__init__.py \
+ qdisc/htb.py
from distutils.core import setup, Extension
opts = ['-O', '-nodefaultctor']
-include = ['../include']
+include = ['@top_builddir@/include']
netlink_capi = Extension('netlink/_capi',
sources = ['netlink/capi.i'],