summaryrefslogtreecommitdiffstats
path: root/build-root/deb/debian/vpp-api-python.prerm
blob: e6d92df9b135ee9157c624e8d211cd0effd0a19f (plain)
1
2
3
4
5
6
7
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