Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 export JAVA_HOME=/usr/lib/jvm/default-java
3 export DH_VERBOSE=1
4
5 PY3VERS:=$(shell py3versions -r)
6
7 export PYBUILD_NAME=jpy
8 %:
9 dh $@ --with python3 --buildsystem=pybuild
10
11 build-python%:
12 python$* setup.py build
13
14 override_dh_auto_build: $(PYTHON3:%=build-python%)
15 dh_auto_build
16
17 override_dh_auto_test:
18 @echo "Tests disabled: pybuild gets paths wrong."
19
20 override_dh_auto_install:
21 for p in $(PY3VERS) ; do \
22 $$p setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb ; \
23 done
24 dh_auto_install
25 find . -name '*.so' -exec chrpath -d {} \;
26 # Strip build path; the libs will exist under /usr, not debian/tmp
27 find . -name 'jpyconfig.properties' -exec sed -i -e 's,$(CURDIR)/debian/tmp,,g' {} \;