DEB pytdeextensions: Make sure that python binary exists for packages that still depend on python2.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/44/head
Slávek Banko 5 years ago
parent 9f0a3957b9
commit 02bd2a08c3
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -33,6 +33,12 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/usr --with-extra-libs=/usr/lib/$(DEB_HOST
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
post-patches::
# make sure that python binary exists
# since the existing code is still dependent on python2
# and cdbs uses python as the default binary name
test -x /usr/bin/python || ln -s python2 /usr/bin/python
install/pytdeextensions-trinity::
# We have no idea if the built product is site-packages or dist-packages
cd debian/tmp/usr/lib/python*/ && mv site-packages/ dist-packages/ || echo "site-packages --> dist-packages"

Loading…
Cancel
Save