[120662] trunk/dports/python/py-spyder-devel/Portfile

eborisch at macports.org eborisch at macports.org
Wed Jun 4 15:03:12 PDT 2014


Revision: 120662
          https://trac.macports.org/changeset/120662
Author:   eborisch at macports.org
Date:     2014-06-04 15:03:11 -0700 (Wed, 04 Jun 2014)
Log Message:
-----------
py-spyder-devel: Move .pyo creation into a variant; fails when trying to open a display on BuildBot.

Modified Paths:
--------------
    trunk/dports/python/py-spyder-devel/Portfile

Modified: trunk/dports/python/py-spyder-devel/Portfile
===================================================================
--- trunk/dports/python/py-spyder-devel/Portfile	2014-06-04 21:59:11 UTC (rev 120661)
+++ trunk/dports/python/py-spyder-devel/Portfile	2014-06-04 22:03:11 UTC (rev 120662)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 name                py-spyder-devel
 version             2.3.0rc
-revision            0
+revision            1
 # Preference on mailing list is to use small numbers for epoch.
 # This is already a date code, so sticking with dates.
 epoch               20130508
@@ -100,6 +100,9 @@
         patchfiles-append   no_AA.diff
     }
 
+    variant optimized description {Create .pyo files. Fails on BuildBot.} {
+    }
+
     # These add very little to the install time
     if {![ variant_isset tiny ]} {
         depends_lib-append \
@@ -142,14 +145,16 @@
         if {${python.version} == ${python.default_version}} {
           ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/
         }
-
-        set OPTCMD    [concat "HOME=${destroot}/tmp/spyder "  \
-                       "PYTHONPATH=${destroot}${python.pkgd} "  \
-                       "./spyder --optimize"]
         
-        file mkdir ${destroot}/tmp/spyder
-        system "cd ${destroot}${python.prefix}/bin && ${OPTCMD}"
-        delete ${destroot}/tmp/spyder
+        if {[variant_isset optimized]} {
+            set OPTCMD    [concat "HOME=${destroot}/tmp/spyder "  \
+                           "PYTHONPATH=${destroot}${python.pkgd} "  \
+                           "./spyder --optimize"]
+            
+            file mkdir ${destroot}/tmp/spyder
+            system "cd ${destroot}${python.prefix}/bin && ${OPTCMD}"
+            delete ${destroot}/tmp/spyder
+        }
         delete \
           ${destroot}${prefix}/bin/spyder_win_post_install.py-${python.branch}
         delete ${destroot}${python.prefix}/bin/spyder_win_post_install.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140604/17c6e7a6/attachment.html>


More information about the macports-changes mailing list