File: python3-petsc4py-real.postinst

package info (click to toggle)
petsc4py 3.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,860 kB
  • sloc: python: 7,303; ansic: 1,560; f90: 322; makefile: 290; sh: 22
file content (13 lines) | stat: -rw-r--r-- 577 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

PETSC4PY_VERSION=__PETSC4PY_VERSION__
PETSC4PY_VERSION_NUMBER=$( echo ${PETSC4PY_VERSION} | sed "s/\.//g" )

# Make alternatives links
if [ "$1" = "configure" ]; then
  # alternative petsc4py version, real or complex
  update-alternatives --install /usr/lib/python3/dist-packages/petsc4py petsc4py /usr/lib/python3/dist-packages/petsc4py_real ${PETSC4PY_VERSION_NUMBER}77 \
    --slave /usr/lib/python3/dist-packages/petsc4py-${PETSC4PY_VERSION}.egg-info petsc4py.egg-info /usr/lib/python3/dist-packages/petsc4py_real-${PETSC4PY_VERSION}.egg-info
fi

#DEBHELPER#