File: rules

package info (click to toggle)
simpleeval 0.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 144 kB
  • sloc: python: 732; sh: 18; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 731 bytes parent folder | download
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 := simpleeval

# disabling failing test for python3.2, when building
# for wheezy backports
# https://github.com/danthedeckie/simpleeval/issues/6
export PYBUILD_DISABLE_python3.2=test

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

override_dh_auto_clean:
	rm -rf $(PACKAGE_NAME).egg-info
	rm -rf PKG-INFO
	dh_auto_clean


override_dh_install:
	dh_install
	# Copy the test suite to a decent location
	mkdir -p debian/python-simpleeval/usr/share/python-simpleeval
	cp test_simpleeval.py debian/python-simpleeval/usr/share/python-simpleeval
	mkdir -p debian/python3-simpleeval/usr/share/python3-simpleeval
	cp test_simpleeval.py debian/python3-simpleeval/usr/share/python3-simpleeval