[66726] trunk/dports/python/py26-googleappengine/Portfile

snc at macports.org snc at macports.org
Wed Apr 21 07:54:41 PDT 2010


Revision: 66726
          http://trac.macports.org/changeset/66726
Author:   snc at macports.org
Date:     2010-04-21 07:54:35 -0700 (Wed, 21 Apr 2010)
Log Message:
-----------
add to python path, #24485

Modified Paths:
--------------
    trunk/dports/python/py26-googleappengine/Portfile

Modified: trunk/dports/python/py26-googleappengine/Portfile
===================================================================
--- trunk/dports/python/py26-googleappengine/Portfile	2010-04-21 14:44:00 UTC (rev 66725)
+++ trunk/dports/python/py26-googleappengine/Portfile	2010-04-21 14:54:35 UTC (rev 66726)
@@ -6,6 +6,7 @@
 
 name                    py26-googleappengine
 version                 1.3.2
+revision                1
 categories-append       devel www
 maintainers             snc openmaintainer
 description             The Google App Engine Python SDK
@@ -25,6 +26,12 @@
 
 destroot {
     file rename ${worksrcpath} ${destroot}${prefix}/share/${worksrcdir}
+
+    # add this directory to the python path, so we can `import google`
+    xinstall -d ${destroot}${python.pkgd}
+    set fp [open "${destroot}${python.pkgd}/googleappengine.pth" "w"]
+    puts $fp "${prefix}/share/${worksrcdir}"
+    close $fp
 }
 build {}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100421/e2e02498/attachment.html>


More information about the macports-changes mailing list