3
include /usr/share/python/python.mk
3
-include /usr/share/python/python.mk
5
py_sitename = site-packages
6
py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
7
py_sitename_sh = $(py_sitename)
8
py_libdir_sh = $(py_libdir)
9
py_setup_install_args =
5
12
# Uncomment this to turn on verbose mode.
6
13
#export DH_VERBOSE=1
16
PYVERSIONS=$(shell pyversions -r)
23
PYVERSIONS=$(shell pyversions -v -r)
24
PYDEF=$(shell pyversions -v -d)
26
$(subst $(PYDEF),python,$*)
28
override_dh_auto_build-%:
29
python$* setup.py build
31
override_dh_auto_build: $(PYVERSIONS:%=override_dh_auto_build-%)
34
override_dh_auto_install-%:
35
python$* setup.py install \
36
--no-compile --root=$(CURDIR)/debian/tmp $(py_setup_install_args)
38
override_dh_auto_install: $(PYVERSIONS:%=override_dh_auto_install-%)
39
python setup.py install \
40
--no-compile --root=$(CURDIR)/debian/tmp $(py_setup_install_args)
22
46
chmod -x sonata/pixmaps/*
24
for python in $(PYVERSIONS) ; do \
25
PKG_CONFIG_PATH=${PKGCONFIGPATH}:/usr/lib/pkgconfig/$$python \
26
$$python setup.py build ; \
35
find . -name '*.pyc' -print0 | xargs -0 -r rm -f
44
for python in $(PYVERSIONS) ; do \
45
$$python setup.py install --no-compile --root=$(CURDIR)/debian/tmp $(py_setup_install_args); \
47
# Need to install default version as last to have proper #! line in main script
48
python setup.py install --no-compile --root=$(CURDIR)/debian/tmp $(py_setup_install_args)
49
54
# We install docs other way
50
rm -rf $(CURDIR)/debian/tmp/usr/share/sonata
51
install -m644 debian/sonata.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps
55
rm -rf $(CURDIR)/debian/sonata/usr/share/sonata
53
57
# Build architecture-independent files here.
54
58
binary-indep: build install
57
dh_installchangelogs -i CHANGELOG
59
dh_install -i --sourcedir=debian/tmp
70
61
# Build architecture-dependent files here.
71
62
binary-arch: build install
74
dh_installchangelogs -a CHANGELOG
76
dh_install -a --sourcedir=debian/tmp
88
65
binary: binary-indep binary-arch
89
66
.PHONY: build clean binary-indep binary-arch binary install