python: Include python/ in distribution and provide a README on how to build & install
This commit is contained in:
parent
d8d96bb236
commit
23333e5e35
8 changed files with 44 additions and 2 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
1
python/.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
build
|
||||
capi_wrap.c
|
||||
capi.py
|
||||
setup.py
|
||||
|
|
3
python/Makefile.am
Normal file
3
python/Makefile.am
Normal file
|
@ -0,0 +1,3 @@
|
|||
# -*- Makefile -*-
|
||||
|
||||
SUBDIRS = netlink
|
12
python/README
Normal file
12
python/README
Normal 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
|
10
python/netlink/Makefile.am
Normal file
10
python/netlink/Makefile.am
Normal file
|
@ -0,0 +1,10 @@
|
|||
# -*- Makefile -*-
|
||||
|
||||
SUBDIRS = route
|
||||
|
||||
EXTRA_DIST = \
|
||||
capi.i \
|
||||
fixes.h \
|
||||
__init__.py \
|
||||
core.py \
|
||||
util.py
|
14
python/netlink/route/Makefile.am
Normal file
14
python/netlink/route/Makefile.am
Normal 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
|
|
@ -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'],
|
Loading…
Add table
Reference in a new issue