File: rules

package info (click to toggle)
monkeysign 2.2.4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,400 kB
  • sloc: python: 3,219; makefile: 147; sh: 12
file content (29 lines) | stat: -rwxr-xr-x 944 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
#!/usr/bin/make -f
# -*- makefile -*-

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

# This has to be exported to make some magic below work.
export DH_OPTIONS

%:
	dh $@  --with=python2,sphinxdoc --buildsystem=pybuild

# once setuptools-scm 1.12.0 lands in Debian, we can remove this
override_dh_auto_build:
	echo "# coding: utf-8" > monkeysign/_version.py
	echo "# file generated by debian package" >> monkeysign/_version.py
	echo "# see https://github.com/pypa/setuptools_scm/issues/101" >> monkeysign/_version.py
	echo "version = '$(shell dpkg-parsechangelog -S version)'" >> monkeysign/_version.py
	dh_auto_build

# disable network tests in Debian package build
PYTEST_USENETWORK?=no
export PYTEST_USENETWORK

override_dh_auto_install:
	dh_auto_install
        # workaround a limitation in distutils, see
        # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743150
	ln -sf monkeysign debian/tmp/usr/bin/monkeyscan