summaryrefslogtreecommitdiffstats
path: root/extra/eric/eric.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/eric/eric.install')
-rw-r--r--extra/eric/eric.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/eric/eric.install b/extra/eric/eric.install
new file mode 100644
index 000000000..8316448e9
--- /dev/null
+++ b/extra/eric/eric.install
@@ -0,0 +1,17 @@
+post_upgrade() {
+ post_remove $1
+}
+
+post_remove() {
+ if test -e usr/lib/python2.6/site-packages/sitecustomize.py
+ then
+ sed -i -e '/import sys/d' \
+ usr/lib/python2.6/site-packages/sitecustomize.py
+ sed -i -e '/sys.setappdefaultencoding = sys.setdefaultencoding/d' \
+ usr/lib/python2.6/site-packages/sitecustomize.py
+ if test ! -s usr/lib/python2.6/site-packages/sitecustomize.py
+ then
+ rm usr/lib/python2.6/site-packages/sitecustomize.py
+ fi
+ fi
+}