diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-08-12 08:45:47 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-08-12 08:45:47 (GMT) |
commit | 23333e5e354cc89cf036e16551957710480d511e (patch) | |
tree | 1314fe4b5e913f62d62adcdf5bb829eed44abdfa /python | |
parent | d8d96bb2365f28ee3f519d610aced5d0c1e71c3d (diff) | |
download | libnl-23333e5e354cc89cf036e16551957710480d511e.zip libnl-23333e5e354cc89cf036e16551957710480d511e.tar.gz libnl-23333e5e354cc89cf036e16551957710480d511e.tar.bz2 |
python: Include python/ in distribution and provide a README on how to build & install
Diffstat (limited to 'python')
-rw-r--r-- | python/.gitignore | 1 | ||||
-rw-r--r-- | python/Makefile.am | 3 | ||||
-rw-r--r-- | python/README | 12 | ||||
-rw-r--r-- | python/netlink/Makefile.am | 10 | ||||
-rw-r--r-- | python/netlink/route/Makefile.am | 14 | ||||
-rw-r--r-- | python/setup.py.in (renamed from python/setup.py) | 2 |
6 files changed, 41 insertions, 1 deletions
diff --git a/python/.gitignore b/python/.gitignore index 9f3c73b..a83b942 100644 --- a/python/.gitignore +++ b/python/.gitignore @@ -1,3 +1,4 @@ build capi_wrap.c capi.py +setup.py diff --git a/python/Makefile.am b/python/Makefile.am new file mode 100644 index 0000000..bd5ac11 --- /dev/null +++ b/python/Makefile.am @@ -0,0 +1,3 @@ +# -*- Makefile -*- + +SUBDIRS = netlink diff --git a/python/README b/python/README new file mode 100644 index 0000000..4ccc337 --- /dev/null +++ b/python/README @@ -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 diff --git a/python/netlink/Makefile.am b/python/netlink/Makefile.am new file mode 100644 index 0000000..0f1045b --- /dev/null +++ b/python/netlink/Makefile.am @@ -0,0 +1,10 @@ +# -*- Makefile -*- + +SUBDIRS = route + +EXTRA_DIST = \ + capi.i \ + fixes.h \ + __init__.py \ + core.py \ + util.py diff --git a/python/netlink/route/Makefile.am b/python/netlink/route/Makefile.am new file mode 100644 index 0000000..ef714f4 --- /dev/null +++ b/python/netlink/route/Makefile.am @@ -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 diff --git a/python/setup.py b/python/setup.py.in index f201a84..e1a3aca 100644 --- a/python/setup.py +++ b/python/setup.py.in @@ -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'], |