| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
NB_TEST := $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) |
| 6 |
|
| 7 |
export PYBUILD_SYSTEM = cmake |
| 8 |
export PYBUILD_CONFIGURE_ARGS = \ |
| 9 |
-DNB_USE_SUBMODULE_DEPS=OFF \ |
| 10 |
-DNB_TEST=$(NB_TEST) \ |
| 11 |
-DNB_INSTALL_DATADIR=/usr/share/nanobind |
| 12 |
export PYBUILD_TEST_ARGS = || true; {interpreter} -m pytest --ignore=tests {build_dir}/tests -k "not test01_check_stub_refs and not test04_subinterpreters" |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --buildsystem=pybuild |
| 16 |
|
| 17 |
execute_after_dh_auto_install: |
| 18 |
python3 debian/helpers/dist_info.py \ |
| 19 |
--name=nanobind \ |
| 20 |
--version=$(DEB_VERSION_UPSTREAM) \ |
| 21 |
--add-metadata="Author: Wenzel Jakob" \ |
| 22 |
--add-metadata="Author-email: [email protected]" \ |
| 23 |
--add-metadata="Home-page: https://github.com/wjakob/nanobind" \ |
| 24 |
--add-metadata="License: BSD-3-Clause" \ |
| 25 |
--add-metadata="Summary: tiny and efficient C++/Python bindings" \ |
| 26 |
--output-dir=debian/tmp/usr/lib/python3/dist-packages |
| 27 |
|
| 28 |
execute_before_dh_python3: |
| 29 |
python3 debian/helpers/nanobind_provides.py |
| 30 |
|