[Lunar-commits] <moonbase-other> numpy: setting up to install python 3 stuff if present

Dennis Veatch dennisveatch at bellsouth.net
Sat Oct 11 13:55:36 CEST 2014


commit 1df16dfe714fb8242d2bebe050d6f8807a6c15aa
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Sat, 11 Oct 2014 07:54:30 -0400
URL: https://github.com/lunar-linux/moonbase-other/commit/1df16dfe714fb8242d2bebe050d6f8807a6c15aa

numpy: setting up to install python 3 stuff if present
---
  python/numpy/BUILD   | +8/-7     
  python/numpy/DEPENDS | +1/-0     
  python/numpy/DETAILS | +1/-1     
  3 files changed, 10 insertions(+), 8 deletions(-)

--- a/python/numpy/BUILD
+++ b/python/numpy/BUILD
@@ -1,12 +1,13 @@
-(
 
   unset LDFLAGS &&
 
   python setup.py build  &&
-
   prepare_install  &&
-
-  python setup.py install
-
-) > $C_FIFO 2>&1
-
+  python setup.py install --root=/ &&
+
+# If installed do the Python 3 install
+  if in_depends $MODULE Python-3 ; then
+    python3 setup.py build &&
+    prepare_install &&
+    python3 setup.py install --root=/
+  fi
--- a/python/numpy/DEPENDS
+++ b/python/numpy/DEPENDS
@@ -4,3 +4,4 @@ depends Python
 optional_depends "lapack" "" "" "for lapack fortrab subroutine support"
 optional_depends "atlas"  "" "" "for atlas support"
 
+optional_depends "Python-3" "" "" "For Python 3 support"
--- a/python/numpy/DETAILS
+++ b/python/numpy/DETAILS
@@ -5,7 +5,7 @@
       SOURCE_VFY=sha256:f7e6cede959ec7d26dc242150839f3193b4ec16d733f1a4bff623c4ed0d27ff5
         WEB_SITE=http://numpy.scipy.org
          ENTERED=20020708
-         UPDATED=20140917
+         UPDATED=20141011
            SHORT="Fundamental package for scientific computing with Python"
 
 cat << EOF




More information about the Lunar-commits mailing list