Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 export PYBUILD_NAME=mpire
4
5 ifeq ($(PYBUILD_AUTOPKGTEST),1)
6 # Skip unstable test_pool test
7 # multi-threaded, use of fork() leads to deadlocks in the child
8 # test_init_comms use subprocess._USE_VFORK not available in python3.14
9 export PYTEST_ADDOPTS="-k not test_pool and not test_init_comms"
10 endif
11
12 %:
13 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
14
15 # Sphinx and more
16 execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
17 execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
18 execute_after_dh_auto_build-indep:
19 # Small fix for sphinx function name change
20 #perl -pi -e 's/add_stylesheet/add_css_file/' docs/conf.py
21 # This is calling sphinx and more
22 PYTHONPATH=.:.. make -C docs html man BUILDDIR=../build
23 rm -rf build/doctrees
24
25 # Disabled as it's handled later with Testsuite
26 override_dh_auto_test:
27 :
28
29 override_dh_installman:
30 dh_installman
31 rm -rf build/man
32
33 override_dh_auto_install:
34 dh_auto_install
35 # Force python3 interpreter in mpire-dashboard
36 perl -pi -e 's:^#!python:#!/usr/bin/python3:' debian/python3-mpire/usr/bin/mpire-dashboard
37