File: rules

package info (click to toggle)
sympy 1.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,784 kB
  • sloc: python: 460,598; xml: 359; makefile: 162; sh: 59; lisp: 4
file content (38 lines) | stat: -rwxr-xr-x 1,312 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
#!/usr/bin/make -f

export PYBUILD_DESTDIR_python3=debian/python3-sympy/
export PYBUILD_TEST_ARGS={dir}/sympy -k 'not (TestUpdateArgsWithPaths)'

include /usr/share/dpkg/default.mk

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

execute_before_dh_auto_build:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
	# build the documentation in HTML format
	faketime '@$(SOURCE_DATE_EPOCH)' \
		sh -c '(cd doc/; export SPHINXOPTS="-j auto"; $(MAKE) html)'
endif

DOCDIR = debian/python-sympy-doc/usr/share/doc/python-sympy-doc
execute_after_dh_auto_install:
	mv debian/python3-sympy/usr/bin/isympy debian/isympy-common/usr/bin/
	mv debian/python3-sympy/usr/share/man/man1/* \
		debian/isympy-common/usr/share/man/man1/
	rm -rf debian/python*-sympy/usr/bin/
	rm -rf debian/python*-sympy/usr/share/man/
	# Get rid of embedded mpmath.  Unfortunately, we
	# can't remove all files with quilt (empty files, for example).
	rm -rf debian/python*-sympy/usr/lib/python*/dist-packages/sympy/mpmath/
	# create the file version.json for the package python-sympy-doc
	install -d $(DOCDIR)
	v=$(DEB_VERSION_UPSTREAM_REVISION); \
	  echo "{\"latest\": \"$$v\", \"dev\": \"$$v\"}" > \
	    $(DOCDIR)/version.json

execute_after_dh_auto_clean:
	cd doc/; $(MAKE) clean;