From 12d93ec04c43f3d72f8676f30a5b2ad624bf9f77 Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Wed, 4 Jan 2017 14:42:21 +0100 Subject: rename vpp python's api debian scripts python's api has been renamed from *vpp-python-api* -> *vpp-api-python* deb scripts need to follow the package name in order to be called Change-Id: I0c9ec45cc3d478c3b90aa75bcd2b8a9f7809cbc9 Signed-off-by: Gabriel Ganne --- build-root/deb/debian/vpp-api-python.postinst | 5 +++++ build-root/deb/debian/vpp-api-python.prerm | 8 ++++++++ build-root/deb/debian/vpp-python-api.postinst | 5 ----- build-root/deb/debian/vpp-python-api.prerm | 8 -------- 4 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 build-root/deb/debian/vpp-api-python.postinst create mode 100644 build-root/deb/debian/vpp-api-python.prerm delete mode 100644 build-root/deb/debian/vpp-python-api.postinst delete mode 100644 build-root/deb/debian/vpp-python-api.prerm (limited to 'build-root/deb') diff --git a/build-root/deb/debian/vpp-api-python.postinst b/build-root/deb/debian/vpp-api-python.postinst new file mode 100644 index 00000000000..ca1c856f9cc --- /dev/null +++ b/build-root/deb/debian/vpp-api-python.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 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 diff --git a/build-root/deb/debian/vpp-python-api.postinst b/build-root/deb/debian/vpp-python-api.postinst deleted file mode 100644 index ca1c856f9cc..00000000000 --- a/build-root/deb/debian/vpp-python-api.postinst +++ /dev/null @@ -1,5 +0,0 @@ -#!/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 diff --git a/build-root/deb/debian/vpp-python-api.prerm b/build-root/deb/debian/vpp-python-api.prerm deleted file mode 100644 index e6d92df9b13..00000000000 --- a/build-root/deb/debian/vpp-python-api.prerm +++ /dev/null @@ -1,8 +0,0 @@ -#!/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