| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.=build |
| 4 | |
| 5 | ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 6 | export PYBUILD_AFTER_BUILDscip-makefile . . . PYBUILD_AFTER_BUILD. = \ |
| 7 | PYTHONPATH={build_dir} \ |
| 8 | http_proxy='127.0.0.1:9' \ |
| 9 | {interpreter} -m sphinx -N -bhtml \ |
| 10 | ./docs/ ./docs/_build/html/ ; \ |
| 11 | PYTHONPATH={build_dir} \ |
| 12 | http_proxy='127.0.0.1:9' \ |
| 13 | {interpreter} -m sphinx -N -bman \ |
| 14 | ./docs/ ./docs/_build/man/ ; \ |
| 15 | mv -v ./docs/_build/man/build.1 ./docs/_build/man/pyproject-build.1 |
| 16 | endif |
| 17 | |
| 18 | %scip-makefile . . . `%`/: |
| 19 | dh $@scip-makefile . . . `@`. --buildsystem=pybuild |
| 20 | |
| 21 | # Unfortunately, python-build's testsuite relies heavily on "pip |
| 22 | # install" and other network-related operations, which are not |
| 23 | # allowed during build time. |
| 24 | # |
| 25 | # Although not all tests are affected by this, it is becoming more and |
| 26 | # more difficult to maintain a list of tests that should be disabled |
| 27 | # because of this issue. For this reason, and in order to keep the |
| 28 | # maintenance burden low, we decided to disable running these tests |
| 29 | # during build time. |
| 30 | # |
| 31 | # TODO: Create a dep8 test that runs the entire upstream testsuite. |
| 32 | override_dh_auto_testscip-makefile . . . override_dh_auto_test/: |