File: rules

package info (click to toggle)
python-opt-einsum 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,756 kB
  • sloc: python: 4,124; makefile: 31; javascript: 15
file content (19 lines) | stat: -rwxr-xr-x 624 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export PYBUILD_NAME=opt-einsum

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

override_dh_installdocs:
	PYTHONPATH=. https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' mkdocs build -d build/html

	#Remove privacy-breach URLs that cause warnings
	find -type f -name "*.html" -exec sed -i 's|https://fonts.gstatic.com|(URL removed)|g' {} +
	find -type f -name "*.html" -exec sed -i 's|https://fonts.googleapis.com|(URL removed)|g' {} +

	#Remove duplicate files
	rm -f build/html/sitemap.xml.gz

	dh_installdocs -ppython-opt-einsum-doc --doc-main-package=python-opt-einsum-doc build/html
	dh_installdocs