File: python-numpy.preinst

package info (click to toggle)
python-numpy 1%3A1.12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,732 kB
  • ctags: 19,262
  • sloc: ansic: 146,995; python: 98,088; cpp: 1,112; makefile: 425; f90: 307; sh: 173; fortran: 169; perl: 58
file content (23 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# TODO: remove this file after releasing Squeeze
set -e

PYCENTRAL=/usr/bin/pycentral

if [ "$1" = upgrade ]
then
       if dpkg --compare-versions "$2" lt 1:1.4.1-1 ; then
	   if [ -x $PYCENTRAL ]; then
               # explicitly remove old python-central files
               pycentral pkgremove python-numpy
	   fi
	   # be really sure also removing left-over files and dirs
	   for pyversion in 2.4 2.5; do
                if [ -d /usr/lib/python$pyversion/site-packages/multiprocessing/ ]; then
                    rm -fr /usr/lib/python$pyversion/site-packages/numpy*
                fi
            done
       fi
fi

#DEBHELPER#