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