aboutsummaryrefslogtreecommitdiffstats
path: root/vpp/build-root/deb/debian/vpp-python-api.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'vpp/build-root/deb/debian/vpp-python-api.postinst')
-rw-r--r--vpp/build-root/deb/debian/vpp-python-api.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/vpp/build-root/deb/debian/vpp-python-api.postinst b/vpp/build-root/deb/debian/vpp-python-api.postinst
new file mode 100644
index 00000000..ca1c856f
--- /dev/null
+++ b/vpp/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