pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Bottleneck 1.0.0



Module Name:	pkgsrc-wip
Committed By:	Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Sat Oct 3 15:53:24 2015 +0100
Changeset:	4c252e87ac5816858f69de9094f5035caf47259e

Modified Files:
	py-bottleneck/DESCR
	py-bottleneck/Makefile
	py-bottleneck/PLIST
	py-bottleneck/distinfo

Log Message:
Bottleneck 1.0.0

Release date: 2015-02-06

This release is a complete rewrite of Bottleneck.

Faster

    "python setup.py build" is 18.7 times faster
    Function-call overhead cut in half---a big speed up for small input arrays
    Arbitrary ndim input arrays accelerated; previously only 1d, 2d, and 3d
    bn.nanrankdata is twice as fast for float input arrays
    bn.move_max, bn.move_min are faster for int input arrays
    No speed penalty for reducing along all axes when input is Fortran ordered

Smaller

    Compiled binaries 14.1 times smaller
    Source tarball 4.7 times smaller
    9.8 times less C code
    4.3 times less Cython code
    3.7 times less Python code

Beware

    Requires numpy 1.9.1
    Single API, e.g.: bn.nansum instead of bn.nansum and nansum_2d_float64_axis0
    On 64-bit systems bn.nansum(int32) returns int32 instead of int64
    bn.nansum now returns 0 for all NaN slices (as does numpy 1.9.1)
    Reducing over all axes returns, e.g., 6.0; previously np.float64(6.0)
    bn.ss() now has default axis=None instead of axis=0
    bn.nn() is no longer in bottleneck

min_count

    Previous releases had moving window function pairs: move_sum, move_nansum
    This release only has half of the pairs: move_sum
    Instead a new input parameter, min_count, has been added
    min_count=None same as old move_sum; min_count=1 same as old move_nansum
    If # non-NaN values in window < min_count, then NaN assigned to the window
    Exception: move_median does not take min_count as input

Bug Fixes

    Can now install bottleneck with pip even if numpy is not already installed
    bn.move_max, bn.move_min now return float32 for float32 input

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4c252e87ac5816858f69de9094f5035caf47259e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-bottleneck/DESCR    |   7 ----
 py-bottleneck/Makefile |  19 ++++-----
 py-bottleneck/PLIST    | 102 ++++++++++++++++++++++++++++++++++---------------
 py-bottleneck/distinfo |   6 +--
 4 files changed, 82 insertions(+), 52 deletions(-)

diffs:
diff --git a/py-bottleneck/DESCR b/py-bottleneck/DESCR
index 489f4db..e69de29 100644
--- a/py-bottleneck/DESCR
+++ b/py-bottleneck/DESCR
@@ -1,7 +0,0 @@
-Bottleneck is a collection of fast, NumPy array functions written in Cython.
-
-The three categories of Bottleneck functions:
-
-    * Faster, drop-in replacement for NaN functions in NumPy and SciPy
-    * Moving window functions
-    * Group functions that bin calculations by like-labeled elements
diff --git a/py-bottleneck/Makefile b/py-bottleneck/Makefile
index 13ee648..ece1a7a 100644
--- a/py-bottleneck/Makefile
+++ b/py-bottleneck/Makefile
@@ -1,23 +1,18 @@
-# $NetBSD: Makefile,v 1.2 2012/10/06 17:22:16 asau Exp $
-#
+# $NetBSD$
 
-DISTNAME=	bottleneck-0.1.0dev
-PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+DISTNAME=	Bottleneck-1.0.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/B/Bottleneck/
+MASTER_SITES=	https://pypi.python.org/packages/source/B/Bottleneck/
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://berkeleyanalytics.com/bottleneck/
 COMMENT=	Fast, NumPy array functions written in Cython
-#LICENSE=	# TODO: (see mk/license.mk)
+LICENSE=	2-clause-bsd
 
-DEPENDS+=	${PYPKGPREFIX}-scipy>=0.7.0:../../math/py-scipy
-
-WRKSRC=	${WRKDIR}/Bottleneck-0.1.0dev
-
-PYDISTUTILSPKG=	yes
+#DEPENDS+=	${PYPKGPREFIX}-scipy>=0.15.1:../../math/py-scipy
 
 .include "../../devel/py-cython/buildlink3.mk"
-.include "../../lang/python/extension.mk"
+.include "../../lang/python/egg.mk"
 .include "../../math/py-numpy/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-bottleneck/PLIST b/py-bottleneck/PLIST
index f954f01..96ab2b8 100644
--- a/py-bottleneck/PLIST
+++ b/py-bottleneck/PLIST
@@ -1,41 +1,83 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2011/04/02 22:35:05 jihbed Exp $
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/bottleneck/LICENSE
 ${PYSITELIB}/bottleneck/__init__.py
 ${PYSITELIB}/bottleneck/__init__.pyc
 ${PYSITELIB}/bottleneck/__init__.pyo
-${PYSITELIB}/bottleneck/bench/__init__.py
-${PYSITELIB}/bottleneck/bench/__init__.pyc
-${PYSITELIB}/bottleneck/bench/__init__.pyo
-${PYSITELIB}/bottleneck/bench/autotimeit.py
-${PYSITELIB}/bottleneck/bench/autotimeit.pyc
-${PYSITELIB}/bottleneck/bench/autotimeit.pyo
-${PYSITELIB}/bottleneck/bench/bench.py
-${PYSITELIB}/bottleneck/bench/bench.pyc
-${PYSITELIB}/bottleneck/bench/bench.pyo
-${PYSITELIB}/bottleneck/func.so
-${PYSITELIB}/bottleneck/group.so
+${PYSITELIB}/bottleneck/benchmark/__init__.py
+${PYSITELIB}/bottleneck/benchmark/__init__.pyc
+${PYSITELIB}/bottleneck/benchmark/__init__.pyo
+${PYSITELIB}/bottleneck/benchmark/autotimeit.py
+${PYSITELIB}/bottleneck/benchmark/autotimeit.pyc
+${PYSITELIB}/bottleneck/benchmark/autotimeit.pyo
+${PYSITELIB}/bottleneck/benchmark/bench.py
+${PYSITELIB}/bottleneck/benchmark/bench.pyc
+${PYSITELIB}/bottleneck/benchmark/bench.pyo
 ${PYSITELIB}/bottleneck/move.so
-${PYSITELIB}/bottleneck/src/func/setup.py
-${PYSITELIB}/bottleneck/src/func/setup.pyc
-${PYSITELIB}/bottleneck/src/func/setup.pyo
-${PYSITELIB}/bottleneck/testing/__init__.py
-${PYSITELIB}/bottleneck/testing/__init__.pyc
-${PYSITELIB}/bottleneck/testing/__init__.pyo
-${PYSITELIB}/bottleneck/testing/group_validator.py
-${PYSITELIB}/bottleneck/testing/group_validator.pyc
-${PYSITELIB}/bottleneck/testing/group_validator.pyo
-${PYSITELIB}/bottleneck/testing/move_validators.py
-${PYSITELIB}/bottleneck/testing/move_validators.pyc
-${PYSITELIB}/bottleneck/testing/move_validators.pyo
-${PYSITELIB}/bottleneck/tests/func_test.py
-${PYSITELIB}/bottleneck/tests/func_test.pyc
-${PYSITELIB}/bottleneck/tests/func_test.pyo
-${PYSITELIB}/bottleneck/tests/group_test.py
-${PYSITELIB}/bottleneck/tests/group_test.pyc
-${PYSITELIB}/bottleneck/tests/group_test.pyo
+${PYSITELIB}/bottleneck/nonreduce.so
+${PYSITELIB}/bottleneck/nonreduce_axis.so
+${PYSITELIB}/bottleneck/reduce.so
+${PYSITELIB}/bottleneck/slow/__init__.py
+${PYSITELIB}/bottleneck/slow/__init__.pyc
+${PYSITELIB}/bottleneck/slow/__init__.pyo
+${PYSITELIB}/bottleneck/slow/move.py
+${PYSITELIB}/bottleneck/slow/move.pyc
+${PYSITELIB}/bottleneck/slow/move.pyo
+${PYSITELIB}/bottleneck/slow/nonreduce.py
+${PYSITELIB}/bottleneck/slow/nonreduce.pyc
+${PYSITELIB}/bottleneck/slow/nonreduce.pyo
+${PYSITELIB}/bottleneck/slow/nonreduce_axis.py
+${PYSITELIB}/bottleneck/slow/nonreduce_axis.pyc
+${PYSITELIB}/bottleneck/slow/nonreduce_axis.pyo
+${PYSITELIB}/bottleneck/slow/reduce.py
+${PYSITELIB}/bottleneck/slow/reduce.pyc
+${PYSITELIB}/bottleneck/slow/reduce.pyo
+${PYSITELIB}/bottleneck/src/__init__.py
+${PYSITELIB}/bottleneck/src/__init__.pyc
+${PYSITELIB}/bottleneck/src/__init__.pyo
+${PYSITELIB}/bottleneck/src/auto_pyx/move_setup.py
+${PYSITELIB}/bottleneck/src/auto_pyx/move_setup.pyc
+${PYSITELIB}/bottleneck/src/auto_pyx/move_setup.pyo
+${PYSITELIB}/bottleneck/src/auto_pyx/nonreduce_axis_setup.py
+${PYSITELIB}/bottleneck/src/auto_pyx/nonreduce_axis_setup.pyc
+${PYSITELIB}/bottleneck/src/auto_pyx/nonreduce_axis_setup.pyo
+${PYSITELIB}/bottleneck/src/auto_pyx/nonreduce_setup.py
+${PYSITELIB}/bottleneck/src/auto_pyx/nonreduce_setup.pyc
+${PYSITELIB}/bottleneck/src/auto_pyx/nonreduce_setup.pyo
+${PYSITELIB}/bottleneck/src/auto_pyx/reduce_setup.py
+${PYSITELIB}/bottleneck/src/auto_pyx/reduce_setup.pyc
+${PYSITELIB}/bottleneck/src/auto_pyx/reduce_setup.pyo
+${PYSITELIB}/bottleneck/src/template/__init__.py
+${PYSITELIB}/bottleneck/src/template/__init__.pyc
+${PYSITELIB}/bottleneck/src/template/__init__.pyo
+${PYSITELIB}/bottleneck/src/template/template.py
+${PYSITELIB}/bottleneck/src/template/template.pyc
+${PYSITELIB}/bottleneck/src/template/template.pyo
+${PYSITELIB}/bottleneck/tests/__init__.py
+${PYSITELIB}/bottleneck/tests/__init__.pyc
+${PYSITELIB}/bottleneck/tests/__init__.pyo
+${PYSITELIB}/bottleneck/tests/input_modifcation_test.py
+${PYSITELIB}/bottleneck/tests/input_modifcation_test.pyc
+${PYSITELIB}/bottleneck/tests/input_modifcation_test.pyo
+${PYSITELIB}/bottleneck/tests/list_input_test.py
+${PYSITELIB}/bottleneck/tests/list_input_test.pyc
+${PYSITELIB}/bottleneck/tests/list_input_test.pyo
 ${PYSITELIB}/bottleneck/tests/move_test.py
 ${PYSITELIB}/bottleneck/tests/move_test.pyc
 ${PYSITELIB}/bottleneck/tests/move_test.pyo
+${PYSITELIB}/bottleneck/tests/nonreduce_axis_test.py
+${PYSITELIB}/bottleneck/tests/nonreduce_axis_test.pyc
+${PYSITELIB}/bottleneck/tests/nonreduce_axis_test.pyo
+${PYSITELIB}/bottleneck/tests/nonreduce_test.py
+${PYSITELIB}/bottleneck/tests/nonreduce_test.pyc
+${PYSITELIB}/bottleneck/tests/nonreduce_test.pyo
+${PYSITELIB}/bottleneck/tests/reduce_test.py
+${PYSITELIB}/bottleneck/tests/reduce_test.pyc
+${PYSITELIB}/bottleneck/tests/reduce_test.pyo
 ${PYSITELIB}/bottleneck/version.py
 ${PYSITELIB}/bottleneck/version.pyc
 ${PYSITELIB}/bottleneck/version.pyo
diff --git a/py-bottleneck/distinfo b/py-bottleneck/distinfo
index 3281c53..7016771 100644
--- a/py-bottleneck/distinfo
+++ b/py-bottleneck/distinfo
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.1.1.1 2011/04/02 22:35:05 jihbed Exp $
 
-SHA1 (bottleneck-0.1.0dev.tar.gz) = 79dd24211db356f7b15544705d5a55c4a864c9c9
-RMD160 (bottleneck-0.1.0dev.tar.gz) = eea17af423e1c8c8cbf0fdbcf2433d2c3e810c27
-Size (bottleneck-0.1.0dev.tar.gz) = 296746 bytes
+SHA1 (Bottleneck-1.0.0.tar.gz) = a7a9549c018bde8fcdb471d0d70b03f8d40e4387
+RMD160 (Bottleneck-1.0.0.tar.gz) = 60a2f149bc9f695ebd09313507e7880a523096c9
+Size (Bottleneck-1.0.0.tar.gz) = 363223 bytes


Home | Main Index | Thread Index | Old Index