File: rules

package info (click to toggle)
memory-allocator 0.1.3-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: python: 82; sh: 15; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 420 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
export PYBUILD_NAME = memory_allocator

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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python3 setup.py build_ext --inplace
	python3 test.py
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -f memory_allocator/*.c
	rm -f memory_allocator/*.so
	rm -rf memory_allocator.egg-info