summaryrefslogtreecommitdiffstats
path: root/build-root/deb/debian/vpp-python-api.postinst
diff options
context:
space:
mode:
authorGabriel Ganne <gabriel.ganne@qosmos.com>2016-12-13 17:00:02 +0100
committerOle Trøan <otroan@employees.org>2017-01-20 20:29:21 +0000
commit7067350c41bd9ae495567c2737fd3a4f31e159ea (patch)
treecdf502e3a9951839027bed4877b4123fde46b1f5 /build-root/deb/debian/vpp-python-api.postinst
parentfa87080d31c1713e8e25db6bb2ce02cc6a7f4290 (diff)
vpp-python-api deb packaging - use easy_install to install the python api
(cherry picked from commit 5a68debd8173a487dbd67b3e574d962308c91bcc) Change-Id: Iabad73d6092b4561ba9d4d22a057bb5871d850a6 Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
Diffstat (limited to 'build-root/deb/debian/vpp-python-api.postinst')
-rw-r--r--build-root/deb/debian/vpp-python-api.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/build-root/deb/debian/vpp-python-api.postinst b/build-root/deb/debian/vpp-python-api.postinst
new file mode 100644
index 00000000000..ca1c856f9cc
--- /dev/null
+++ b/build-root/deb/debian/vpp-python-api.postinst
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+# after installing python-api files
+python2_sitedir=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
+easy_install --install-dir=$python2_sitedir -z $python2_sitedir/vpp_papi/vpp_papi-*.egg