File: rules

package info (click to toggle)
astropy 3.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 44,420 kB
  • sloc: ansic: 164,467; python: 151,318; lex: 8,157; sh: 3,639; xml: 1,447; makefile: 175
file content (47 lines) | stat: -rwxr-xr-x 1,419 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

# set the MPLCONFIGDIR to avoid writing into non writable location
export HOME=$(CURDIR)/build
export MPLCONFIGDIR=$(CURDIR)/build

# Use agg Matplotlib backend for testing on headless machines.
export MPLBACKEND=agg

export LC_ALL=C.UTF-8

# Generate PLY files
export PYBUILD_AFTER_BUILD=cd {build_dir}; python{version} -c 'import astropy.coordinates; astropy.coordinates.angle_utilities.parse_angle("0°"); import astropy.units.format; astropy.units.format.CDS.parse("m/s"); astropy.units.format.Generic.parse("m"); astropy.units.format.OGIP.parse("m/s")'
export PYBUILD_CLEAN_ARGS=--offline
export PYBUILD_CONFIGURE_ARGS=--offline
export PYBUILD_BUILD_ARGS=--offline
export PYBUILD_INSTALL_ARGS=--offline

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

override_dh_shlibdeps:
	dh_shlibdeps
	dh_numpy3

override_dh_installdocs-indep:
	PYTHONPATH=$(CURDIR)/debian python3 setup.py build_docs
	dh_installdocs

override_dh_sphinxdoc-arch:
	# sphinxdoc is only needed on indep and does not work here.

override_dh_installchangelogs:
	dh_installchangelogs docs/changelog.rst

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build astropy.egg-info
	rm -rf astropy_helpers-*.egg
	rm -rf docs/_build docs/_generated

override_dh_python3:
	dh_python3
	dh_python3-ply $$(find $(PYBUILD_DESTDIR_python3) -name '*tab.py')

override_dh_strip_nondeterminism:
	dh_strip_nondeterminism -Xinvalid.dat.gz