File: rules

package info (click to toggle)
python-asdf 2.14.3-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,280 kB
  • sloc: python: 16,612; makefile: 124
file content (24 lines) | stat: -rwxr-xr-x 614 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export PYBUILD_NAME=asdf
export DEB_VERSION_UPSTREAM

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

override_dh_installdocs:
	PYTHONPATH=`pwd` sphinx-build docs docs/_build/html
	dh_installdocs

override_dh_fixperms:
	dh_fixperms
	chmod a-x debian/*/usr/lib/python3/dist-packages/asdf/tests/data/example_schema.json

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/asdftool/usr
	mv debian/python3-asdf/usr/bin debian/asdftool/usr
	for i in docs compatibility_tests ; do \
	    rm -rf debian/python3-asdf/usr/lib/python3*/dist-packages/$$i ; \
	done