Debian Codegraph @

debian/rules

raw symbols SCIP
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 execute_after_dh_clean:
18 rm -f setup.out
19
20 override_dh_auto_test:
21 @echo "Tests disabled: pybuild gets paths wrong."
22
23 override_dh_auto_install:
24 for p in $(PY3VERS) ; do \
25 $$p setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb ; \
26 done
27 dh_auto_install
28 find . -name '*.so' -exec chrpath -d {} \;
29 # Strip build path; the libs will exist under /usr, not debian/tmp
30 find . -name 'jpyconfig.properties' -exec sed -i -e 's,$(CURDIR)/debian/tmp,,g' {} \;