blob: 2cdfcfd29b32444c92758092d87d495c648b72df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
post_install() {
mv /usr/include/python3.5m/pyconfig.h /usr/include/python3.5m/pyconfig-64.h
ln -s pyconfig-stub.h /usr/include/python3.5m/pyconfig.h
}
post_upgrade() {
if [ ! -L /usr/include/python3.5m/pyconfig.h ]; then
post_install
elif [ ${1::-2} != ${2::-2} ]; then
echo WARNING: libx32-python is upgraded before python,
echo WARNING: you probably need to reinstall libx32-python.
fi
}
post_remove() {
if [ -L /usr/include/python3.5m/pyconfig.h ]; then
rm /usr/include/python3.5m/pyconfig.h
mv /usr/include/python3.5m/pyconfig-64.h /usr/include/python3.5m/pyconfig.h
fi
}
|