[Lunar-commits] <moonbase-core> Python: Prepare for Python3 to co-exist

Stefan Wold ratler at lunar-linux.org
Sat Oct 13 15:58:56 CEST 2012


commit 52bf77a0e12e1127f77421770cb493ed8c0efb42
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 13 Oct 2012 06:58:56 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/52bf77a0e12e1127f77421770cb493ed8c0efb42

Python: Prepare for Python3 to co-exist
---
  python/Python/POST_INSTALL | +1/-1     
  1 file changed, 1 insertion(+), 1 deletion(-)

--- a/python/Python/POST_INSTALL
+++ b/python/Python/POST_INSTALL
@@ -5,7 +5,7 @@ message "on a major version change like 2.4, to 2.5 or 2.6. Minor version number
 message "like 2.5.1, to 2.5.2 are usually safe without recompiling.${DEFAULT_COLOR}"
 
 if query "Do you want lunar to attempt to upgrade your Python modules?" y; then
-        PYTHONMODS="$( lvu from /usr/lib/python*/site-packages | cut -d: -f1 | uniq | grep -v Python)"
+        PYTHONMODS="$( lvu from /usr/lib/python2*/site-packages | cut -d: -f1 | uniq | grep -v Python)"
         for PYTHONMOD in $(sort_by_dependency $PYTHONMODS); do
                 lin -c $PYTHONMOD || true
         done




More information about the Lunar-commits mailing list