File: rules

package info (click to toggle)
ptyprocess 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 244 kB
  • sloc: python: 893; makefile: 154
file content (16 lines) | stat: -rwxr-xr-x 583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=ptyprocess
export PYBUILD_SYSTEM=custom
export PYBUILD_CLEAN_ARGS=rm -rf {build_dir}/python{version}/dist-packages
export PYBUILD_CONFIGURE_ARGS=true
export PYBUILD_BUILD_ARGS=true
export PYBUILD_INSTALL_ARGS=mkdir -p {destdir}/usr/lib/python{version}/dist-packages && cp -r ptyprocess {destdir}/usr/lib/python{version}/dist-packages
export PYBUILD_TEST_ARGS={interpreter} -m unittest discover -s tests -v

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom dh_auto_test