From 7067350c41bd9ae495567c2737fd3a4f31e159ea Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Tue, 13 Dec 2016 17:00:02 +0100 Subject: 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 --- build-root/deb/debian/vpp-python-api.prerm | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 build-root/deb/debian/vpp-python-api.prerm (limited to 'build-root/deb/debian/vpp-python-api.prerm') diff --git a/build-root/deb/debian/vpp-python-api.prerm b/build-root/deb/debian/vpp-python-api.prerm new file mode 100644 index 00000000000..e6d92df9b13 --- /dev/null +++ b/build-root/deb/debian/vpp-python-api.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 -- cgit 1.2.3-korg