File: rules

package info (click to toggle)
python-googleapi 1.7.11-4
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 110,952 kB
  • sloc: python: 7,784; javascript: 249; makefile: 59; sh: 53; xml: 5
file content (34 lines) | stat: -rwxr-xr-x 838 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PYTHON3S:=$(shell py3versions -vr)
SAMPLESDIR=$(CURDIR)/debian/python3-googleapi-samples/usr/share/doc/python3-googleapi-samples/examples/

export PYBUILD_NAME=googleapi

override_dh_auto_install:
	dh_auto_install
	set -e && for pyvers in $(PYTHON3S); do \
		python$$pyvers setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-googleapi; \
	done

override_dh_fixperms:
	dh_fixperms
	chmod a-x $(SAMPLESDIR)/storage_serviceaccount_appengine/listing.xsl

override_dh_clean:
	dh_clean -O--buildsystem=pybuild
	rm -rf $(CURDIR)/build

override_dh_auto_test: 
	nosetests3

%:
	dh $@ --buildsystem=pybuild --with python3

.PHONY: override_dh_auto_install override_dh_fixperms override_dh_clean \
	override_dh_auto_test