[Lunar-commits] <moonbase> Add POST_INSTALL for some modules potentially breaking easy_install.

Jannis Pohlmann jannis at xfce.org
Wed May 27 01:31:12 CEST 2009


commit c960f1e257bbd39be8436fc50d4c4683a3386c3c
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Wed May 27 01:31:12 2009 +0200

    Add POST_INSTALL for some modules potentially breaking easy_install.
---
 python/django-authopenid/POST_INSTALL   |   16 ++++++++++++++++
 python/django-notification/POST_INSTALL |   16 ++++++++++++++++
 python/django-pagination/POST_INSTALL   |   16 ++++++++++++++++
 python/transifex/POST_INSTALL           |   16 ++++++++++++++++
 4 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/python/django-authopenid/POST_INSTALL b/python/django-authopenid/POST_INSTALL
new file mode 100644
index 0000000..2ce733b
--- /dev/null
+++ b/python/django-authopenid/POST_INSTALL
@@ -0,0 +1,16 @@
+# determine the current major Python version
+python_major=`installed_version Python | cut -d. -f1-2`
+
+# determine the Python site-packages path
+python_dir="/usr/lib/python${python_major}/site-packages"
+
+# determine the easy_install .egg file cache
+pth_file="$python_dir/easy-install.pth"
+
+# clear the cache
+rm $pth_file
+
+# put all the .egg files/dirs into the cache
+for egg in $python_dir/*.egg; do
+  echo `basename $egg` >> $pth_file
+done
diff --git a/python/django-notification/POST_INSTALL b/python/django-notification/POST_INSTALL
new file mode 100644
index 0000000..2ce733b
--- /dev/null
+++ b/python/django-notification/POST_INSTALL
@@ -0,0 +1,16 @@
+# determine the current major Python version
+python_major=`installed_version Python | cut -d. -f1-2`
+
+# determine the Python site-packages path
+python_dir="/usr/lib/python${python_major}/site-packages"
+
+# determine the easy_install .egg file cache
+pth_file="$python_dir/easy-install.pth"
+
+# clear the cache
+rm $pth_file
+
+# put all the .egg files/dirs into the cache
+for egg in $python_dir/*.egg; do
+  echo `basename $egg` >> $pth_file
+done
diff --git a/python/django-pagination/POST_INSTALL b/python/django-pagination/POST_INSTALL
new file mode 100644
index 0000000..2ce733b
--- /dev/null
+++ b/python/django-pagination/POST_INSTALL
@@ -0,0 +1,16 @@
+# determine the current major Python version
+python_major=`installed_version Python | cut -d. -f1-2`
+
+# determine the Python site-packages path
+python_dir="/usr/lib/python${python_major}/site-packages"
+
+# determine the easy_install .egg file cache
+pth_file="$python_dir/easy-install.pth"
+
+# clear the cache
+rm $pth_file
+
+# put all the .egg files/dirs into the cache
+for egg in $python_dir/*.egg; do
+  echo `basename $egg` >> $pth_file
+done
diff --git a/python/transifex/POST_INSTALL b/python/transifex/POST_INSTALL
new file mode 100644
index 0000000..2ce733b
--- /dev/null
+++ b/python/transifex/POST_INSTALL
@@ -0,0 +1,16 @@
+# determine the current major Python version
+python_major=`installed_version Python | cut -d. -f1-2`
+
+# determine the Python site-packages path
+python_dir="/usr/lib/python${python_major}/site-packages"
+
+# determine the easy_install .egg file cache
+pth_file="$python_dir/easy-install.pth"
+
+# clear the cache
+rm $pth_file
+
+# put all the .egg files/dirs into the cache
+for egg in $python_dir/*.egg; do
+  echo `basename $egg` >> $pth_file
+done


More information about the Lunar-commits mailing list