File: rules

package info (click to toggle)
jpy 0.8-5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,780 kB
  • ctags: 1,716
  • sloc: python: 19,796; ansic: 5,709; java: 1,588; xml: 172; makefile: 164; sh: 6
file content (29 lines) | stat: -rwxr-xr-x 768 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
26
27
28
29
#!/usr/bin/make -f
export JAVA_HOME=/usr/lib/jvm/default-java
export DH_VERBOSE=1

PYVERS:=$(shell pyversions -r)
PY3VERS:=$(shell py3versions -r)

%:
	dh $@ --with python2,python3

build-python%:
	python$* setup.py build

override_dh_auto_build: $(PYTHON3:%=build-python%)
	dh_auto_build

dh_auto_test:
	for p in $(PYVERS) $(PY3VERS) ; do \
		$$p ./setup.py test  ; \
		done

override_dh_auto_install:
	for p in $(PYVERS) $(PY3VERS) ; do \
                $$p setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb ; \
                done
	dh_auto_install
	find . -name '*.so' -exec chrpath -d {} \;
	# Strip build path; the libs will exist under /usr, not debian/tmp
	find . -name 'jpyconfig.properties' -exec sed -i -e 's,$(CURDIR)/debian/tmp,,g' {} \;