python: Include python/ in distribution and provide a README on how to build & install
This commit is contained in:
parent
d8d96bb236
commit
23333e5e35
|
@ -8,7 +8,7 @@ if ENABLE_CLI
|
||||||
OPT_DIRS += src
|
OPT_DIRS += src
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SUBDIRS = include lib doc man $(OPT_DIRS)
|
SUBDIRS = include lib doc man python $(OPT_DIRS)
|
||||||
|
|
||||||
pkgconfig_DATA = libnl-3.1.pc \
|
pkgconfig_DATA = libnl-3.1.pc \
|
||||||
libnl-route-3.1.pc \
|
libnl-route-3.1.pc \
|
||||||
|
|
|
@ -51,5 +51,7 @@ AC_CHECK_LIB([pthread], [pthread_mutex_lock], [], AC_MSG_ERROR([libpthread is re
|
||||||
AC_CONFIG_FILES([Makefile doc/Doxyfile doc/Makefile lib/Makefile
|
AC_CONFIG_FILES([Makefile doc/Doxyfile doc/Makefile lib/Makefile
|
||||||
include/Makefile src/Makefile src/lib/Makefile man/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
|
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])
|
include/netlink/version.h])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
build
|
build
|
||||||
capi_wrap.c
|
capi_wrap.c
|
||||||
capi.py
|
capi.py
|
||||||
|
setup.py
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# -*- Makefile -*-
|
||||||
|
|
||||||
|
SUBDIRS = netlink
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
***************************************************************************
|
||||||
|
|
||||||
|
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
|
|
@ -0,0 +1,10 @@
|
||||||
|
# -*- Makefile -*-
|
||||||
|
|
||||||
|
SUBDIRS = route
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
capi.i \
|
||||||
|
fixes.h \
|
||||||
|
__init__.py \
|
||||||
|
core.py \
|
||||||
|
util.py
|
|
@ -0,0 +1,14 @@
|
||||||
|
# -*- 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
|
|
@ -3,7 +3,7 @@
|
||||||
from distutils.core import setup, Extension
|
from distutils.core import setup, Extension
|
||||||
|
|
||||||
opts = ['-O', '-nodefaultctor']
|
opts = ['-O', '-nodefaultctor']
|
||||||
include = ['../include']
|
include = ['@top_builddir@/include']
|
||||||
|
|
||||||
netlink_capi = Extension('netlink/_capi',
|
netlink_capi = Extension('netlink/_capi',
|
||||||
sources = ['netlink/capi.i'],
|
sources = ['netlink/capi.i'],
|
Reference in New Issue