aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/deb/debian/vpp-api-python.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'build-root/deb/debian/vpp-api-python.prerm')
-rw-r--r--build-root/deb/debian/vpp-api-python.prerm8
1 files changed, 8 insertions, 0 deletions
diff --git a/build-root/deb/debian/vpp-api-python.prerm b/build-root/deb/debian/vpp-api-python.prerm
new file mode 100644
index 00000000000..e6d92df9b13
--- /dev/null
+++ b/build-root/deb/debian/vpp-api-python.prerm
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+# before removing python-api files
+python2_sitedir=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
+easy_install --install-dir=$python2_sitedir -mxNq vpp_papi
+
+# the egg has been copied during install
+rm $python2_sitedir/vpp_papi-*.egg