[Lunar-commits] <moonbase-other> Python-3: Adding a symlink in the BUILD.

Dennis Veatch dennisveatch at bellsouth.net
Thu Oct 9 22:38:53 CEST 2014


commit f144617cb4dfb71d465450add3b56a3595eee797
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Thu, 09 Oct 2014 16:37:51 -0400
URL: https://github.com/lunar-linux/moonbase-other/commit/f144617cb4dfb71d465450add3b56a3595eee797

Python-3: Adding a symlink in the BUILD.
---
  python/Python-3/BUILD | +13/-4    
  1 file changed, 13 insertions(+), 4 deletions(-)

--- a/python/Python-3/BUILD
+++ b/python/Python-3/BUILD
@@ -1,7 +1,16 @@
-(
 
   OPTS+=" --enable-shared --with-threads"  &&
 
+# Makes sure shipped expat is not used when we want system expat
+  if in_depends $MODULE expat ; then
+     rm -fr Modules/expat
+  fi &&
+
+# Makes sure shipped libffi stuff is not used when we want system libffi
+  if in_depends $MODULE libffi ; then
+      rm -fr Modules/_ctypes/libffi*
+  fi &&
+
   default_config &&
 
 # This is important, lets 2.x versions and it to coexist.
@@ -10,6 +19,6 @@
   make altinstall &&
 
 # Till Python 3 based apps catch up we need a symlink from python3.3 to python3
-  ln -sf /usr/bin/python3.`lvu version Python-3 | cut -c 1` /usr/bin/python3
-
-) > $C_FIFO 2>&1
+  ln -sf /usr/bin/python3.`lvu version Python-3 | cut -c 1` /usr/bin/python3 &&
+# Some apps look for /usr/bin/python3-config
+  ln -sf /usr/bin/python3.`lvu version Python-3 | cut -c 1`m-config /usr/bin/python3-config




More information about the Lunar-commits mailing list