File: rules

package info (click to toggle)
python-libdiscid 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 672 kB
  • sloc: python: 708; ansic: 104; makefile: 13; sh: 6
file content (22 lines) | stat: -rwxr-xr-x 578 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 PYBUILD_NAME=libdiscid
# Get the default Python 3 version
PY3VERSD=$(shell py3versions -vd)

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

override_dh_auto_build-indep:
	pybuild --build -p $(PY3VERSD) --build-args="build_ext --inplace"
	pybuild --build -p $(PY3VERSD) --build-args="build_sphinx"

# no install and test for indep
override_dh_auto_install-indep override_dh_auto_test-indep:

override_dh_installdocs-indep:
	dh_installdocs -i --doc-main-package=python3-libdiscid
	dh_sphinxdoc -i

override_dh_auto_test:
	dh_auto_test -- --test-pytest