[Lunar-commits] <moonbase-other> sip: making adjustments to deal with Python-3

Dennis Veatch dennisveatch at bellsouth.net
Wed Nov 12 23:41:37 CET 2014


commit 99c4d3b01f0c51d838c63e97a0ad66186b5f5242
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Wed, 12 Nov 2014 17:41:16 -0500
URL: https://github.com/lunar-linux/moonbase-other/commit/99c4d3b01f0c51d838c63e97a0ad66186b5f5242

sip: making adjustments to deal with Python-3
---
  python/sip/BUILD   | +7/-3     
  python/sip/DEPENDS | +2/-0     
  2 files changed, 9 insertions(+), 3 deletions(-)

--- a/python/sip/BUILD
+++ b/python/sip/BUILD
@@ -1,6 +1,10 @@
-(
 
+# Do Python2 build
   python configure.py  &&        
-  default_make
+  default_make &&
 
-) > $C_FIFO 2>&1
+# Do Python3 build
+  if in_depends $MODULE Python-3 ; then
+    python3 configure.py &&
+    default_make
+  fi
--- a/python/sip/DEPENDS
+++ b/python/sip/DEPENDS
@@ -1 +1,3 @@
 depends  Python
+
+optional_depends Python-3 "" "" "For Python 3 bindings support"




More information about the Lunar-commits mailing list