summaryrefslogtreecommitdiffstats
path: root/build-root/deb/debian/vpp-python-api.postinst
diff options
context:
space:
mode:
authorroot <root@intel-rd.labo>2016-12-13 17:00:02 +0100
committerOle Trøan <otroan@employees.org>2017-01-03 12:57:53 +0000
commit5a68debd8173a487dbd67b3e574d962308c91bcc (patch)
tree6cf4b190a1528c7747c2d50d8ebffb0a1b1e36a3 /build-root/deb/debian/vpp-python-api.postinst
parent3cd9eed64b82bd50735434e0679e7fd085ec2884 (diff)
vpp-python-api deb packaging - use easy_install to install the python api
Change-Id: I67963d5a6ec324b13c50f8f6c51ed3c715b4c145 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