File: rules

package info (click to toggle)
python-build 1.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 508 kB
  • sloc: python: 2,622; makefile: 16
file content (32 lines) | stat: -rwxr-xr-x 1,036 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
31
32
#!/usr/bin/make -f

export PYBUILD_NAME=build

ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
export PYBUILD_AFTER_BUILD = \
	PYTHONPATH={build_dir} \
	http_proxy='127.0.0.1:9' \
		{interpreter} -m sphinx -N -bhtml \
		./docs/ ./docs/_build/html/ ; \
	PYTHONPATH={build_dir} \
	http_proxy='127.0.0.1:9' \
		{interpreter} -m sphinx -N -bman \
		./docs/ ./docs/_build/man/ ; \
	mv -v ./docs/_build/man/build.1 ./docs/_build/man/pyproject-build.1
endif

%:
	dh $@ --buildsystem=pybuild

# Unfortunately, python-build's testsuite relies heavily on "pip
# install" and other network-related operations, which are not
# allowed during build time.
#
# Although not all tests are affected by this, it is becoming more and
# more difficult to maintain a list of tests that should be disabled
# because of this issue.  For this reason, and in order to keep the
# maintenance burden low, we decided to disable running these tests
# during build time.
#
# TODO: Create a dep8 test that runs the entire upstream testsuite.
override_dh_auto_test: