[55597] trunk/dports/python
singingwolfboy at macports.org
singingwolfboy at macports.org
Fri Aug 14 05:25:31 PDT 2009
Revision: 55597
http://trac.macports.org/changeset/55597
Author: singingwolfboy at macports.org
Date: 2009-08-14 05:25:30 -0700 (Fri, 14 Aug 2009)
Log Message:
-----------
added new port py26-networkx, based on port py25-networkx. Also included a patch to avoid importing deprecated 'sets' module in python 2.6
Modified Paths:
--------------
trunk/dports/python/py26-networkx/Portfile
Added Paths:
-----------
trunk/dports/python/py26-networkx/
trunk/dports/python/py26-networkx/files/
trunk/dports/python/py26-networkx/files/patch-generators-hybrid.diff
Modified: trunk/dports/python/py26-networkx/Portfile
===================================================================
--- trunk/dports/python/py25-networkx/Portfile 2009-08-14 12:14:17 UTC (rev 55596)
+++ trunk/dports/python/py26-networkx/Portfile 2009-08-14 12:25:30 UTC (rev 55597)
@@ -1,12 +1,12 @@
# $Id$
PortSystem 1.0
-PortGroup python25 1.0
+PortGroup python26 1.0
-name py25-networkx
+name py26-networkx
version 0.99
categories-append science
-maintainers nomaintainer
+maintainers singingwolfboy openmaintainer
description NetworkX in a Python package for graph manpulation.
long_description NetworkX is a Python package for the creation, \
manipulation, and study of the structure, dynamics, \
@@ -18,9 +18,10 @@
master_sites http://pypi.python.org/packages/source/n/networkx/ \
https://networkx.lanl.gov/download/networkx/
distname networkx-${version}
+patchfiles patch-generators-hybrid.diff
checksums md5 1d3238c973ad198583e90533b27d6cd3 \
sha1 8d1f1da45ac20302d73853e14da9c24cada81a8d \
rmd160 4450a016e1841fed525598f017a4dfae3d099b5d
-depends_lib-append port:py25-setuptools
+depends_lib-append port:py26-setuptools
Added: trunk/dports/python/py26-networkx/files/patch-generators-hybrid.diff
===================================================================
--- trunk/dports/python/py26-networkx/files/patch-generators-hybrid.diff (rev 0)
+++ trunk/dports/python/py26-networkx/files/patch-generators-hybrid.diff 2009-08-14 12:25:30 UTC (rev 55597)
@@ -0,0 +1,24 @@
+--- networkx/generators/hybrid.py.orig 2009-08-14 08:03:25.000000000 -0400
++++ networkx/generators/hybrid.py 2009-08-14 08:04:22.000000000 -0400
+@@ -13,8 +13,11 @@
+ _all__ = ['kl_connected_subgraph', 'is_kl_connected']
+
+ import copy
+-import sets
+ from networkx import shortest_path
++try:
++ set
++except NameError:
++ from sets import Set as set
+
+ def kl_connected_subgraph(G,k,l,low_memory=False,same_as_graph=False):
+ """ Returns the maximum locally (k,l) connected subgraph of G.
+@@ -38,7 +41,7 @@
+ (u,v)=edge
+ ### Get copy of graph needed for this search
+ if low_memory:
+- verts=sets.Set([u,v])
++ verts=set([u,v])
+ for i in range(k):
+ [verts.update(G.neighbors(w)) for w in verts.copy()]
+ G2=G.subgraph(list(verts))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090814/64bfb34a/attachment-0001.html>
More information about the macports-changes
mailing list