File: rules

package info (click to toggle)
pyspectral 0.10.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,092 kB
  • sloc: python: 5,178; makefile: 124
file content (33 lines) | stat: -rwxr-xr-x 892 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
#!/usr/bin/make -f
# -*- makefile -*-

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

export PYBUILD_TEST_ARGS=-k 'not test_rayleigh'
# export PSP_CONFIG_FILE=debian/pyspectral_testcfg.yaml

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

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -r *.egg-info

override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
	dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -N -bhtml doc build/html # HTML generator
	# PYTHONPATH=. python3 -m sphinx -N -bman doc build/man # Manpage generator
endif

override_dh_auto_install:
	dh_auto_install

	for f in debian/tmp/usr/bin/*.py; do \
		mv $$f $$(dirname $$f)/$$(basename $$f .py);\
	done

	$(RM) -r debian/tmp/usr/lib/python*/dist-packages/pyspectral/__pycache__/