[Lunar-commits] <moonbase-other> Jinja2: Setting up the DEPENDS and BUILD so if present it will also build for Python-3.

Dennis Veatch dennisveatch at bellsouth.net
Thu Oct 9 18:38:10 CEST 2014


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

Jinja2: Setting up the DEPENDS and BUILD so if present it will also build for Python-3.
---
  python/Jinja2/BUILD   | +8/-4     
  python/Jinja2/DEPENDS | +2/-0     
  2 files changed, 10 insertions(+), 4 deletions(-)

--- a/python/Jinja2/BUILD
+++ b/python/Jinja2/BUILD
@@ -1,8 +1,12 @@
-(
 
+# Do the python2 part first
  python setup.py build    &&
  prepare_install          &&
- python setup.py install --root=/
-
-) > $C_FIFO 2>&1
+ python setup.py install --optimize=1 &&
 
+# Can live side by side with the Python2 stuff
+ if in_depends $MODULE Python-3 ; then
+   python setup.py build    &&
+   prepare_install          &&
+   python3 setup.py install --optimize=1
+ fi
--- a/python/Jinja2/DEPENDS
+++ b/python/Jinja2/DEPENDS
@@ -1 +1,3 @@
 depends Python
+
+optional_depends Python-3 "" "" "For Python-03 support"




More information about the Lunar-commits mailing list