[Lunar-commits] <moonbase-other> MarkupSafe: Adding optional_depends Python-3 and adjusting the BUILD to accomodate.

Dennis Veatch dennisveatch at bellsouth.net
Thu Oct 9 17:52:49 CEST 2014


commit 5c823df1b611f27fc49ac3aeb1dbbede73f129f0
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Thu, 09 Oct 2014 11:52:08 -0400
URL: https://github.com/lunar-linux/moonbase-other/commit/5c823df1b611f27fc49ac3aeb1dbbede73f129f0

MarkupSafe: Adding optional_depends Python-3 and adjusting the BUILD to accomodate.
---
  python/MarkupSafe/BUILD   | +9/-2     
  python/MarkupSafe/DEPENDS | +2/-0     
  2 files changed, 11 insertions(+), 2 deletions(-)

--- a/python/MarkupSafe/BUILD
+++ b/python/MarkupSafe/BUILD
@@ -1,4 +1,11 @@
 
-  python ./setup.py build  &&
+# This part does Python2
+  python setup.py build  &&
   prepare_install          &&
-  python ./setup.py install
+  python setup.py install --optimize=1 &&
+
+# Now do Python-3 part, they can live together
+  if in_depends $MODULE Python-3 ; then
+   python3 setup.py build &&
+   python3 setup.py install --optimize=1
+  fi
--- a/python/MarkupSafe/DEPENDS
+++ b/python/MarkupSafe/DEPENDS
@@ -1 +1,3 @@
 depends Python
+
+optional_depends Python-3 "" "" "For Python3 support"




More information about the Lunar-commits mailing list