ports/127520: [NEW PORT]science/py-hcluster:A Hierarchical Clustering Package For Scipy
Wen Heping
wenheping at gmail.com
Sun Sep 21 12:40:03 UTC 2008
>Number: 127520
>Category: ports
>Synopsis: [NEW PORT]science/py-hcluster:A Hierarchical Clustering Package For Scipy
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 21 12:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Wen Heping
>Release: FreeBSD 7.0 release
>Organization:
ChangAn Middle School
>Environment:
FreeBSD tinderbox.wenjing.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
py-hcluster library provides Python functions for
agglomerative clustering. Its features include
* generating hierarchical clusters from distance matrices
* computing distance matrices from observation vectors
* computing statistics on clusters
* cutting linkages to generate flat clusters
* and visualizing clusters with dendrograms.
The interface is very similar to MATLAB's Statistics
Toolbox API to make code easier to port from MATLAB to
Python/Numpy. The core implementation of this library
is in C for efficiency.
WWW: http://code.google.com/p/scipy-cluster/
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# py-hcluster
# py-hcluster/files
# py-hcluster/files/patch-setup.py
# py-hcluster/pkg-plist
# py-hcluster/pkg-descr
# py-hcluster/distinfo
# py-hcluster/Makefile
#
echo c - py-hcluster
mkdir -p py-hcluster > /dev/null 2>&1
echo c - py-hcluster/files
mkdir -p py-hcluster/files > /dev/null 2>&1
echo x - py-hcluster/files/patch-setup.py
sed 's/^X//' >py-hcluster/files/patch-setup.py << 'END-of-py-hcluster/files/patch-setup.py'
X--- setup.py.orig 2008-09-21 22:20:16.000000000 +0800
X+++ setup.py 2008-09-21 22:20:34.000000000 +0800
X@@ -33,7 +33,8 @@
X print string.join(l, '\n')
X # Prompt the user with a list of selections.
X while not (s >= 1 and s <= len(valid_paths)):
X- s = input('Selection [default=1]:' % s)
X+# s = input('Selection [default=1]:' % s)
X+ s=1
X if s == '':
X s = 1
X else:
END-of-py-hcluster/files/patch-setup.py
echo x - py-hcluster/pkg-plist
sed 's/^X//' >py-hcluster/pkg-plist << 'END-of-py-hcluster/pkg-plist'
X%%PYTHON_SITELIBDIR%%/_cluster_wrap.so
X%%PYTHON_SITELIBDIR%%/hcluster/__init__.py
X%%PYTHON_SITELIBDIR%%/hcluster/__init__.pyc
X%%PYTHON_SITELIBDIR%%/hcluster/__init__.pyo
X%%PYTHON_SITELIBDIR%%/hcluster/cluster.py
X%%PYTHON_SITELIBDIR%%/hcluster/cluster.pyc
X%%PYTHON_SITELIBDIR%%/hcluster/cluster.pyo
X at dirrm %%PYTHON_SITELIBDIR%%/hcluster
END-of-py-hcluster/pkg-plist
echo x - py-hcluster/pkg-descr
sed 's/^X//' >py-hcluster/pkg-descr << 'END-of-py-hcluster/pkg-descr'
Xpy-hcluster library provides Python functions for
Xagglomerative clustering. Its features include
X* generating hierarchical clusters from distance matrices
X* computing distance matrices from observation vectors
X* computing statistics on clusters
X* cutting linkages to generate flat clusters
X* and visualizing clusters with dendrograms.
X
XThe interface is very similar to MATLAB's Statistics
XToolbox API to make code easier to port from MATLAB to
XPython/Numpy. The core implementation of this library
Xis in C for efficiency.
X
XWWW: http://code.google.com/p/scipy-cluster/
END-of-py-hcluster/pkg-descr
echo x - py-hcluster/distinfo
sed 's/^X//' >py-hcluster/distinfo << 'END-of-py-hcluster/distinfo'
XMD5 (hcluster-0.1.9.tar.gz) = 1d24fd81648c8b154bca37b2fa91a274
XSHA256 (hcluster-0.1.9.tar.gz) = eb24c9ae0f2c65a2c2845d84350a4660af32fa36714a4ecca11c9085ae9d9bfa
XSIZE (hcluster-0.1.9.tar.gz) = 42642
END-of-py-hcluster/distinfo
echo x - py-hcluster/Makefile
sed 's/^X//' >py-hcluster/Makefile << 'END-of-py-hcluster/Makefile'
X# New ports collection makefile for: py-hcluster
X# Date created: 2008-09-04
X# Whom: Wen Heping <wenheping at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= hcluster
XPORTVERSION= 0.1.9
XCATEGORIES= science python
XMASTER_SITES= CHEESESHOP
XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER= wenheping at gmail.com
XCOMMENT= A Hierarchical Clustering Package For Scipy
X
XBUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XUSE_PYTHON= yes
XUSE_PYDISTUTILS= yes
X
X.include <bsd.port.mk>
END-of-py-hcluster/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list