3
PYVERS := $(shell pyversions -r)
4
PY3VERS := $(shell py3versions -r)
6
DEB_VERSION := $(shell dpkg-parsechangelog --show-field=Version)
7
UPSTREAM_VERSION := $(shell x="$(DEB_VERSION)"; echo "$${x%-*}")
8
PKG_VERSION := $(shell x="$(DEB_VERSION)"; echo "$${x\#\#*-}")
11
dh $@ --with=python2,python3
13
override_dh_auto_install:
15
set -ex; for python in $(PY3VERS) $(PYVERS); do \
16
$$python setup.py build --executable=/usr/bin/python && \
17
$$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
19
chmod 755 $(CURDIR)/debian/tmp/usr/lib/curtin/helpers/*
20
find $(CURDIR)/debian/tmp
21
for f in $$(find $(CURDIR)/debian/tmp/usr/lib -type f -name version.py); do [ -f "$$f" ] || continue; sed -i 's,@@PACKAGED_VERSION@@,$(DEB_VERSION),' "$$f"; done