3 #DEB_PYTHON_VERSIONS:=2.5
4 DEB_PYTHON_SYSTEM=pysupport
6 include /usr/share/cdbs/1/rules/debhelper.mk
7 include /usr/share/cdbs/1/class/python-distutils.mk
9 PYVERS = $(shell pyversions -vd)
11 cdbs_python_current_binary := $(shell pyversions -d)
13 DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0 --install-layout=deb
16 # dh_install drlaunch_widget.py usr/lib/hildon-desktop/
17 # dh_install misc/drlaunch.desktop usr/share/applications/hildon-home/
18 # dh_install drlaunch_widget.py tmp/
19 dh_install misc/drlaunch.desktop tmp/
22 ifeq (all, $(cdbs_python_module_arch))
23 cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
25 cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
26 endif # archall detection
30 ifeq (all, $(cdbs_python_module_arch))
31 common-install-arch common-install-indep:: python-install-py
33 cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
35 common-install-arch common-install-indep:: $(addprefix python-install-, $(cdbs_python_build_versions))
37 cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
38 endif # archall detection