vpp-python-api deb packaging - use easy_install to install the python api
(cherry picked from commit 5a68debd81
)
Change-Id: Iabad73d6092b4561ba9d4d22a057bb5871d850a6
Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
This commit is contained in:
5
build-root/deb/debian/vpp-python-api.postinst
Normal file
5
build-root/deb/debian/vpp-python-api.postinst
Normal file
@ -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
|
8
build-root/deb/debian/vpp-python-api.prerm
Normal file
8
build-root/deb/debian/vpp-python-api.prerm
Normal file
@ -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
|
@ -31,4 +31,5 @@ setup (name = 'vpp_papi',
|
||||
libraries = ['pneum'],
|
||||
)],
|
||||
long_description = '''VPP Python language binding.''',
|
||||
zip_safe = True,
|
||||
)
|
||||
|
Reference in New Issue
Block a user