Codebase list libsbml / a4a0323
Hopefully fix python installation Andreas Tille 4 years ago
2 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
66 (already present in machine-readable debian/copyright).
77 * Build-Depends: dh-python
88 Closes: #949195
9 * Fix installation path of Python modules
10 Closes: #922486
911
1012 -- Andreas Tille <tille@debian.org> Sun, 26 Jan 2020 20:54:35 +0100
1113
2323 ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
2424 CMAKE_OPTS += -D'WITH_01_COMPILE:BOOL=ON'
2525 endif
26
27 export PYBUILD_NAME=libsbml
2628
2729 ### let's do it ###
2830
5456 endif
5557 mkdir -p build
5658 cd build ; cmake $(CMAKE_OPTS) ../
57 # skip this hack since it should work also without it
58 # /bin/sh debian/bin/python_fix.sh
5959
6060 override_dh_auto_build:
61 # we need to mount proc
62 # see https://lists.alioth.debian.org/pipermail/debian-med-packaging/2015-December/037461.html
63 # and https://lists.alioth.debian.org/pipermail/debian-med-packaging/2015-December/037474.html
64 ## its rather a bug in pbuilder if proc is not mounted ...# if mount | grep "^proc " ; then echo "proc mounted - fine"; else mount proc /proc -t proc ; fi
6561 cd build ; make
6662
6763 override_dh_auto_test:
7268 override_dh_auto_install:
7369 cd build ; DESTDIR=../debian/tmp make install
7470 sed 's#formatted/##g' docs/index.html.in > $(debtmp)/usr/share/libsbml/docs/index.html
71 # dh_auto_install -O--buildsystem=pybuild # unfortunately there is no setup.py
72 set -x ; \
73 for pyv in `py3versions -s` ; do \
74 test -e $(debtmp)/usr/lib/*/$${pyv}/site-packages && mv $(debtmp)/usr/lib/*/python$${pyv}/site-packages $(debtmp)/usr/lib/python$${pyv}/dist-packages || true ; \
75 done
7576 dh_auto_install
7677 find $(debtmp)/usr -type f -name "*.js" -delete
7778 find $(debtmp)/usr -type f -name "*.md5" -delete
7879 find $(debtmp)/usr -type f -exec chmod 644 {} +
79 for pyv in `py3versions -s` ; do \
80 test -e $(debtmp)/usr/lib/$${pyv}/site-packages && mv $(debtmp)/usr/lib/python$${pyv}/site-packages $(debtmp)/usr/lib/python$${pyv}/dist-packages || true ; \
81 done
8280 find $(debtmp)/usr/lib -name "*.mex*" -exec strip --strip-unneeded {} + || true
8381 find $(debtmp)/usr/lib -name "*.mex*" -exec strip --remove-section=.comment {} + || true
8482 dpkg-shlibdeps $(debtmp)/usr/lib/*/octave/site/oct/*/*.mex -Tdebian/libsbml5-octave.substvars