File: python3-adios.postinst.in

package info (click to toggle)
adios 1.13.1-31
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,692 kB
  • sloc: ansic: 133,236; f90: 8,791; sh: 7,779; python: 7,648; xml: 3,793; makefile: 2,996; cpp: 2,340; java: 626; sed: 16; perl: 8
file content (18 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [ !  -z "$(update-alternatives --get-selections 2> /dev/null | grep  mpi-@DEB_HOST_MULTIARCH@)" ]; then
MPI=`update-alternatives --get-selections | grep mpi-@DEB_HOST_MULTIARCH@ | awk '{print $3}' | cut -f5 -d/ `
else
MPI=@DEFAULT_MPI@
fi

# Delete potential garbage from old bug #983888
(update-alternatives --remove-all python-3.9-adios-@MULTIARCH@ 2> /dev/null || true)

update-alternatives \
    --install /usr/lib/python3/dist-packages/adios_mpi/adios_mpi.@ABITAG@.so python3-adios-@DEB_HOST_MULTIARCH@ \
              /usr/lib/python3/dist-packages/adios_${MPI}/adios_mpi.@ABITAG@.so 50 

#DEBHELPER#