dect
/
libnl
Archived
13
0
Fork 0

python: Include python/ in distribution and provide a README on how to build & install

This commit is contained in:
Thomas Graf 2011-08-12 10:45:47 +02:00
parent d8d96bb236
commit 23333e5e35
8 changed files with 44 additions and 2 deletions

View File

@ -8,7 +8,7 @@ if ENABLE_CLI
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 \

View File

@ -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
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

1
python/.gitignore vendored
View File

@ -1,3 +1,4 @@
build
capi_wrap.c
capi.py
setup.py

3
python/Makefile.am Normal file
View File

@ -0,0 +1,3 @@
# -*- Makefile -*-
SUBDIRS = netlink

12
python/README Normal file
View File

@ -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

View File

@ -0,0 +1,10 @@
# -*- Makefile -*-
SUBDIRS = route
EXTRA_DIST = \
capi.i \
fixes.h \
__init__.py \
core.py \
util.py

View File

@ -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

View File

@ -3,7 +3,7 @@
from distutils.core import setup, Extension
opts = ['-O', '-nodefaultctor']
include = ['../include']
include = ['@top_builddir@/include']
netlink_capi = Extension('netlink/_capi',
sources = ['netlink/capi.i'],