File: rules

package info (click to toggle)
python-drizzle 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 203,144 kB
  • sloc: ansic: 6,754; python: 1,817; makefile: 128
file content (30 lines) | stat: -rwxr-xr-x 766 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

include  /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=drizzle
export SETUPTOOLS_SCM_PRETEND_VERSION=${DEB_VERSION_UPSTREAM}
export DRIZZLE_TEST_DIR=$(shell pwd)/drizzle/tests/data

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

override_dh_auto_build:
	dh_auto_build
	echo ${SETUPTOOLS_SCM_PRETEND_VERSION}
	python3 setup.py build_ext -i
	python3 -m sphinx docs build/sphinx/html

override_dh_install-arch:
	dh_install
	rm -rf debian/python*-drizzle/usr/bin/ \
	       debian/python*-drizzle/usr/lib/python*/*/drizzle/tests/data

override_dh_fixperms-indep:
	dh_fixperms
	chmod a-x debian/python-drizzle-*/usr/share/python-drizzle/test_data/j8bt06nyq_flt.fits

override_dh_python3-arch:
	dh_python3
	dh_numpy3