File: rules

package info (click to toggle)
enzyme 0.4.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 412 kB
  • sloc: python: 1,181; xml: 222; makefile: 11
file content (25 lines) | stat: -rwxr-xr-x 892 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
20
21
22
23
24
25
#!/usr/bin/make -f
export PYBUILD_NAME=enzyme
# The tests require the download of a 180MB file, which isn't allowed during
# Debian package build, so let's disable it.
export PYBUILD_DISABLE=test

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

# Work around #730777
override_dh_install:
	dh_install
	rm -r debian/python3-enzyme/usr/lib/python3.*/dist-packages/enzyme/tests/

override_dh_installchangelogs:
	dh_installchangelogs HISTORY.rst

# Keep this override so that the tests can be run simply by commenting the
# export line above. pybuild sets the proxy to a non-existent one by default,
# to avoid downloads during the package build. That's fine, but we only run
# the tests manually.
# Note: add python-yaml, python-requests, python3-yaml and python3-requests
# to Build-Depends if you want to run the tests.
override_dh_auto_test:
	http_proxy='' https_proxy='' dh_auto_test