File: rules

package info (click to toggle)
numexpr 2.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 656 kB
  • sloc: cpp: 3,558; python: 3,274; ansic: 357; makefile: 209; sh: 8
file content (36 lines) | stat: -rwxr-xr-x 657 bytes parent folder | download
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
31
32
33
34
35
36
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1
export PYBUILD_NAME=numexpr
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# Get the supported Python versions
PY3VERS = $(shell py3versions -r -v)

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
export CFLAGS ?= -O0
endif


%:
	dh $@ --with python3 --buildsystem=pybuild


override_dh_gencontrol:
	dh_numpy3
	dh_gencontrol


override_dh_auto_clean:
	dh_auto_clean
	$(RM) -r build/ numexpr.egg-info/
	$(RM) numexpr/version.py


override_dh_installchangelogs:
	dh_installchangelogs -k RELEASE_NOTES.rst


.PHONY: override_dh_gencontrol override_dh_auto_clean \
        override_dh_installchangelogs