aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Warnicke <hagbard@gmail.com>2016-10-28 22:52:36 +0000
committerChris Luke <chris_luke@comcast.com>2016-10-29 20:14:56 +0000
commit6ce685d79b1365588a92340e5c45cdbdea92d5db (patch)
treecaec60cd75a5d06c1611a9a103daff7fcf29b8f2
parent8c1bebe83f7e277a36b8f570ed88363a5f3639b3 (diff)
Initial deb packaging of vpp-python-api
Change-Id: I14d5180d6abd59b813906011718121a2bbc9bafd Signed-off-by: Ed Warnicke <hagbard@gmail.com>
-rw-r--r--build-data/platforms.mk4
-rw-r--r--build-root/deb/debian/.gitignore1
-rw-r--r--build-root/deb/debian/control7
-rwxr-xr-xbuild-root/deb/debian/rules2
-rwxr-xr-xbuild-root/scripts/find-python-api-contents8
5 files changed, 21 insertions, 1 deletions
diff --git a/build-data/platforms.mk b/build-data/platforms.mk
index 36cfc878..9d878151 100644
--- a/build-data/platforms.mk
+++ b/build-data/platforms.mk
@@ -43,6 +43,10 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
./scripts/find-plugins-contents $(INSTALL_PREFIX)$(ARCH) \
deb/debian/vpp-plugins.install ; \
\
+ : python-api package ; \
+ ./scripts/find-python-api-contents $(INSTALL_PREFIX)$(ARCH) \
+ deb/debian/vpp-python-api.install ; \
+ \
: dpdk headers ; \
./scripts/find-dpdk-contents $(INSTALL_PREFIX)$(ARCH) \
deb/debian/vpp-dpdk-dev.install ; \
diff --git a/build-root/deb/debian/.gitignore b/build-root/deb/debian/.gitignore
index e7868b4e..75d8fbbc 100644
--- a/build-root/deb/debian/.gitignore
+++ b/build-root/deb/debian/.gitignore
@@ -11,3 +11,4 @@ vpp-dpdk-dev/
vpp-dpdk-dkms/
vpp-dbg/
vppctl/
+vpp-python-api/
diff --git a/build-root/deb/debian/control b/build-root/deb/debian/control
index 4be6c4aa..86383b14 100644
--- a/build-root/deb/debian/control
+++ b/build-root/deb/debian/control
@@ -59,3 +59,10 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: DPDK 2.1 igb_uio_driver
This package contains Linux kernel modules distributed with DPDK.
+
+Package: vpp-python-api
+Architecture: any
+Depends: ${python:Depends}, ${misc:Depends}, vpp (= ${source:Version})
+Description: VPP Python API bindings
+ This package contains VPP python api bindings
+ .
diff --git a/build-root/deb/debian/rules b/build-root/deb/debian/rules
index b5afbdb6..4ecd38f7 100755
--- a/build-root/deb/debian/rules
+++ b/build-root/deb/debian/rules
@@ -18,7 +18,7 @@ include /usr/share/dpkg/default.mk
# main packaging script based on dh7 syntax
%:
- dh $@ --with dkms --with systemd
+ dh $@ --with dkms --with systemd,python2
override_dh_install:
dh_install --exclude .git
diff --git a/build-root/scripts/find-python-api-contents b/build-root/scripts/find-python-api-contents
new file mode 100755
index 00000000..9b390e75
--- /dev/null
+++ b/build-root/scripts/find-python-api-contents
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+rm -f $2
+
+for i in $(find ${1}/vpp-api/lib/python2.7/site-packages/ -type f -print); do
+ echo ../${i} /usr/lib/python2.7/site-packages/vpp_papi >> ${2}
+done
+