File: rules

package info (click to toggle)
xraydb 4.4.7%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 50,636 kB
  • sloc: python: 4,557; makefile: 78; sh: 7
file content (31 lines) | stat: -rwxr-xr-x 764 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
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=xraydb
export PYBUILD_DIR=python

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

override_dh_auto_configure:
	cd data_sources/ & python3 ./create_db.py & cd -

override_dh_auto_build:
	export http_proxy=127.0.0.1:9
	dh_auto_build
	PYTHONPATH=python python3 -m sphinx -N -bhtml doc/ build/html

override_dh_auto_install:
	dh_auto_install
	dh_numpy3

override_dh_auto_test:
	HOMEPATH=. PYTHONPATH=python pytest-3 python/tests/ -s -v

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -r python/xraydb.egg-info/ build/ python/.pytest_cache/
	find . -name "*.pyc" -delete
	$(RM) xraydb.sqlite