File: rules

package info (click to toggle)
more-itertools 10.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: python: 8,796; makefile: 167
file content (22 lines) | stat: -rwxr-xr-x 484 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=more-itertools

%:
	dh $@ --buildsystem=pybuild

override_dh_installchangelogs:
	dh_installchangelogs docs/versions.rst

override_dh_auto_build:
	# Fixing file permissions for Python files.
	for file in `find $(CURDIR)/more_itertools -type f`; do \
		FOUND_PYTHON=$$(head -n1 $$file | grep python); \
		if [ "$$FOUND_PYTHON" != "" ]; then \
			chmod +x $$file; \
		else \
			chmod -x $$file; \
		fi; \
	done
	dh_auto_build