File: rules

package info (click to toggle)
pyspectral 0.13.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,180 kB
  • sloc: python: 6,035; makefile: 123
file content (31 lines) | stat: -rwxr-xr-x 1,088 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
#!/usr/bin/make -f
# -*- makefile -*-

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

export PYBUILD_TEST_ARGS=-k 'not test_rayleigh' --pyargs pyspectral
export PYBUILD_AFTER_TEST=${RM} -r {build_dir}/.pytest_cache
# export PSP_CONFIG_FILE=debian/pyspectral_testcfg.yaml

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build: export http_proxy=127.0.0.1:9
execute_after_dh_auto_build: export https_proxy=127.0.0.1:9
execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -N -bhtml doc .pybuild/build/html # HTML generator
	# PYTHONPATH=. python3 -m sphinx -N -bman doc .pybuild/build/man # Manpage generator
	sed -i -E "s:'.+/pyspectral/data/e490_00a.dat':'/usr/lib/python3/dist-packages/pyspectral/data/e490_00a.dat':g" .pybuild/build/html/api.html
endif

execute_after_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__/

override_dh_numpy3:
	dh_numpy3 -p python3-pyspectral