Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=dask
4 export PYBUILD_TEST_ARGS=--timeout-method=signal --timeout=300 -m "not (network)"
5 # Pyarrow currently only builds for the default version so pyarrow
6 # tests for the older python 3.13 don't work.
7 export PYBUILD_DISABLE_python3.13=test
8
9 %:
10 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
11
12 override_dh_auto_clean:
13 dh_auto_clean
14 ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
15 $(MAKE) -C docs clean
16 endif
17
18 override_dh_auto_build: export http_proxy=http://127.0.0.1:9
19 override_dh_auto_build: export https_proxy=https://127.0.0.1:9
20 override_dh_auto_build:
21 dh_auto_build
22 ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
23 PYTHONPATH=$(CURDIR) $(MAKE) -C docs html || true
24 if [ \! -f docs/build/html/index.html ]; then \
25 echo "sphinx documentation build completely failed"; \
26 exit 1; \
27 fi
28 cp debian/_images/Xarray_Logo_RGB_Final.png docs/build/html/_images/
29 rm -rf docs/build/html/_static/__pycache__
30 endif
31
32 override_dh_auto_test:
33 dh_auto_test
34 find .pybuild -name *.pdf -exec rm {} \;
35
36 override_dh_auto_install:
37 dh_auto_install
38 dh_link
39 chmod a-x debian/python3-dask/usr/lib/python3*/dist-packages/dask/dataframe/io/orc/utils.py
40
41 override_dh_installchangelogs:
42 dh_installchangelogs docs/source/changelog.rst
43
44 execute_after_dh_installdocs:
45 rm -vf debian/python-dask-doc/usr/share/doc/python-dask-doc/html/_static/vendor/fontawesome/*/LICENSE.txt
46
47 # Upstream provides these files separately from the source tree
48 # but they're needed to build the documentation.
49 update_yaml_files:
50 curl -L -o debian/dask-config-blocks/dask.yaml https://raw.githubusercontent.com/dask/dask/master/dask/dask.yaml
51 curl -L -o debian/dask-config-blocks/dask-schema.yaml https://raw.githubusercontent.com/dask/dask/master/dask/dask-schema.yaml
52 curl -L -o debian/dask-config-blocks/distributed.yaml https://raw.githubusercontent.com/dask/distributed/master/distributed/distributed.yaml
53 curl -L -o debian/dask-config-blocks/distributed-schema.yaml https://raw.githubusercontent.com/dask/distributed/master/distributed/distributed-schema.yaml