File: rules

package info (click to toggle)
python-wordcloud 1.9.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: python: 1,429; sh: 46; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 580 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME = wordcloud
export PYBUILD_AFTER_INSTALL = \
  dh_link /usr/share/fonts/truetype/noto/NotoMono-Regular.ttf {install_dir}/$(PYBUILD_NAME)/DroidSansMono.ttf

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

override_dh_auto_clean:
	set -ex; \
	if [ -e "${CURDIR}/wordcloud/query_integral_image.c" ]; then \
		rm "${CURDIR}/wordcloud/query_integral_image.c"; \
	fi

execute_after_auto_configure:
	cython3 wordcloud/*.pyx

# skip tests when building, depends on autopkgtest
override_dh_auto_test: