File: rules

package info (click to toggle)
python-hidapi 0.14.0.post4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,184 kB
  • sloc: ansic: 5,417; python: 263; makefile: 7
file content (19 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# Export the package name.
export PYBUILD_NAME = hid

# Enable all build hardening flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Copy the test file to the build environment.
export PYBUILD_BEFORE_TEST = cp {dir}/tests.py {build_dir}

# Specify the test file to use.
export PYBUILD_TEST_ARGS = tests.py

# Delete the test file from the build environment after the test is run.
export PYBUILD_AFTER_TEST = rm {build_dir}/tests.py

%:
	dh $@ --buildsystem=pybuild