[63043] trunk/dports/python

akitada at macports.org akitada at macports.org
Sun Jan 24 04:10:29 PST 2010


Revision: 63043
          http://trac.macports.org/changeset/63043
Author:   akitada at macports.org
Date:     2010-01-24 04:10:26 -0800 (Sun, 24 Jan 2010)
Log Message:
-----------
Added py26-greenlet.

Added Paths:
-----------
    trunk/dports/python/py26-greenlet/
    trunk/dports/python/py26-greenlet/Portfile

Added: trunk/dports/python/py26-greenlet/Portfile
===================================================================
--- trunk/dports/python/py26-greenlet/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-greenlet/Portfile	2010-01-24 12:10:26 UTC (rev 63043)
@@ -0,0 +1,45 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python26 1.0
+
+name                    py26-greenlet
+version                 0.2
+categories-append       devel
+platforms               darwin
+maintainers             akitada openmaintainer
+description             Lightweight in-process concurrent programming
+long_description        The \"greenlet\" package is a spin-off of \
+                        Stackless, a version of CPython that supports \
+                        micro-threads called \"tasklets\". Tasklets run \
+                        pseudo-concurrently (typically in a single or \
+                        a few OS-level threads) and are synchronized \
+                        with data exchanges on \"channels\". \
+                        \
+                        A \"greenlet\", on the other hand, is a still \
+                        more primitive notion of micro-thread with no \
+                        implicit scheduling\; coroutines, in other \
+                        words. This is useful when you want to control \
+                        exactly when your code runs. You can build \
+                        custom scheduled micro-threads on top of \
+                        greenlet\; however, it seems that greenlets are \
+                        useful on their own as a way to make advanced \
+                        control flow structures. For example, we can \
+                        recreate generators\; the difference with \
+                        Python's own generators is that our generators \
+                        can call nested functions and the nested \
+                        functions can yield values too. Additionally, \
+                        you don't need a \"yield\" keyword. See the \
+                        example in test_generator.py. \
+                        \
+                        Greenlets are provided as a C extension module \
+                        for the regular unmodified interpreter.
+
+homepage                http://undefined.org/python/#greenlet
+master_sites            http://pypi.python.org/packages/source/g/greenlet/
+distname                greenlet-${version}
+checksums               md5 cfcac72683fbf52d6c9f4f82a319dcb9 \
+                        sha1 b864ec8db6685f72e7174b7df57ac644d12f9fd5 \
+                        rmd160 8f32f008f5846dd99d14115f4c8c7aa9b1e2a428
+depends_lib             port:py26-setuptools


Property changes on: trunk/dports/python/py26-greenlet/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100124/0438df13/attachment.html>


More information about the macports-changes mailing list