File: rules

package info (click to toggle)
ruamel.yaml 0.15.34-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,288 kB
  • sloc: python: 9,036; ansic: 7,364; makefile: 12
file content (16 lines) | stat: -rwxr-xr-x 727 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/make -f

export PYBUILD_NAME=ruamel.yaml
export PYBUILD_INSTALL_ARGS=--single-version-externally-managed
export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin/
export PYBUILD_BEFORE_BUILD_python2=cython ext/_ruamel_yaml.pyx
export PYBUILD_BEFORE_BUILD_python3=cython3 ext/_ruamel_yaml.pyx
export PYBUILD_BEFORE_TEST=ln -s {dir}/_test {build_dir}/
export PYBUILD_BEFORE_TEST_python2=$(PYBUILD_BEFORE_TEST); ln -s /usr/lib/{interpreter}/dist-packages/ruamel/ordereddict /usr/lib/{interpreter}/dist-packages/ruamel/__init__.py {build_dir}/ruamel/.
export PYBUILD_TEST_ARGS=_test/test_*.py

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

override_dh_auto_test:
	echo "There is no test suite available"