| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=gplearn |
| 4 |
export PYBUILD_TEST_ARGS=-k '\ |
| 5 |
not test_sklearn_regressor_checks \ |
| 6 |
and not test_sklearn_classifier_check \ |
| 7 |
and not test_parallel_custom_metric \ |
| 8 |
and not test_parallel_custom_function \ |
| 9 |
and not test_parallel_custom_transformer \ |
| 10 |
and not test_get_n_jobs' |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 14 |
|
| 15 |
override_dh_installdocs: |
| 16 |
https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' sphinx-build -b html doc build/sphinx/html |
| 17 |
|
| 18 |
# Replace tex-mml-chtml.js URLs with local paths |
| 19 |
find -type f -name "*.html" -exec sed -i 's|https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js|/usr/share/nodejs/mathjax-full/components/src/tex-mml-chtml/tex-mml-chtml.js|g' {} + |
| 20 |
|
| 21 |
dh_installdocs -ppython-gplearn-doc --doc-main-package=python-gplearn-doc build/sphinx/html |
| 22 |
dh_installdocs |