#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_DISABLE=1

product := $(subst -python3,,$(DEB_SOURCE))

override_dh_auto_configure:

override_dh_auto_build:

override_dh_auto_install:
	dh_auto_install
	cd scylla-python3; ./install.sh --root "$(CURDIR)/debian/${product}-python3"

override_dh_strip:

override_dh_makeshlibs:

override_dh_shlibdeps:

override_dh_fixperms:
	dh_fixperms
	chmod 755 $(CURDIR)/debian/${product}-python3/opt/scylladb/python3/libexec/ld.so

override_dh_strip_nondeterminism:

%:
	dh $@
