File: rules

package info (click to toggle)
nanobind 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,948 kB
  • sloc: cpp: 11,472; python: 5,590; ansic: 4,617; makefile: 22; sh: 15
file content (30 lines) | stat: -rwxr-xr-x 976 bytes parent folder | download | duplicates (2)
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