File: rules

package info (click to toggle)
simpleeval 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 196 kB
  • sloc: python: 1,292; makefile: 13; sh: 9
file content (25 lines) | stat: -rwxr-xr-x 705 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 := 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 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/python3-simpleeval/usr/share/python3-simpleeval
	cp test_simpleeval.py debian/python3-simpleeval/usr/share/python3-simpleeval
	# Remove duplicate license
	rm -f debian/python*-simpleeval/usr/lib/python*/dist-packages/simpleeval*.dist-info/LICENCE