Skip to content

Commit

Permalink
Update py-bottleneck to 1.2.0
Browse files Browse the repository at this point in the history
Changes since  1.0.0:
- Bottleneck is now written in C
- Cython is no longer a dependency
- Source tarball size reduced by 80%
- Build time reduced by 66%
- Install size reduced by 45%
- All Bottleneck functions release the GIL
- median is faster if the input array contains NaN
- move_median is faster for input arrays that contain lots of NaNs
- No speed penalty for median, nanmedian, nanargmin, nanargmax for Fortran
  ordered input arrays when axis is None
- Function call overhead cut in half for reduction along all axes (axis=None)
  if the input array satisfies at least one of the following properties: 1d,
  C contiguous, F contiguous
- Reduction along all axes (axis=None) is more than twice as fast for long,
  narrow input arrays such as a (1000000, 2) C contiguous array and a
  (2, 1000000) F contiguous array
- The new function bench_detailed runs a detailed performance benchmark on
  a single bottleneck function.
- Bottleneck can be installed on systems that do not yet have NumPy
  installed. Previously that only worked on some systems.
- New functions:
  - move_var
  - move_argmin
  - move_argmax
  - move_rank
  - push
  • Loading branch information
msk committed Mar 8, 2017
1 parent 679ef1e commit 1665447
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 56 deletions.
1 change: 1 addition & 0 deletions py-bottleneck/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bottleneck is a collection of fast NumPy array functions written in C.
8 changes: 4 additions & 4 deletions py-bottleneck/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# $NetBSD$

DISTNAME= Bottleneck-1.0.0
DISTNAME= Bottleneck-1.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_PYPI:=B/Bottleneck/}

MAINTAINER= [email protected]
HOMEPAGE= http://berkeleyanalytics.com/bottleneck/
COMMENT= Fast, NumPy array functions written in Cython
COMMENT= Fast NumPy array functions written in Cython
LICENSE= 2-clause-bsd

#DEPENDS+= ${PYPKGPREFIX}-scipy>=0.15.1:../../math/py-scipy
USE_LANGUAGES= c

.include "../../devel/py-cython/buildlink3.mk"
.include "../../lang/python/egg.mk"
BUILDLINK_API_DEPENDS.py-numpy+= ${PYPKGPREFIX}-numpy>=1.9.1
.include "../../math/py-numpy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
92 changes: 43 additions & 49 deletions py-bottleneck/PLIST
Original file line number Diff line number Diff line change
Expand Up @@ -6,78 +6,72 @@ ${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/__init__.pyc
${PYSITELIB}/bottleneck/version.pyo
${PYSITELIB}/bottleneck/version.pyc
${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/__init__.pyc
${PYSITELIB}/bottleneck/benchmark/autotimeit.pyo
${PYSITELIB}/bottleneck/benchmark/bench.py
${PYSITELIB}/bottleneck/benchmark/bench.pyc
${PYSITELIB}/bottleneck/benchmark/autotimeit.pyc
${PYSITELIB}/bottleneck/benchmark/bench.pyo
${PYSITELIB}/bottleneck/benchmark/bench.pyc
${PYSITELIB}/bottleneck/benchmark/bench_detailed.pyo
${PYSITELIB}/bottleneck/benchmark/bench_detailed.pyc
${PYSITELIB}/bottleneck/benchmark/autotimeit.py
${PYSITELIB}/bottleneck/benchmark/bench.py
${PYSITELIB}/bottleneck/benchmark/bench_detailed.py
${PYSITELIB}/bottleneck/move.so
${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/__init__.pyc
${PYSITELIB}/bottleneck/slow/move.pyo
${PYSITELIB}/bottleneck/slow/nonreduce.py
${PYSITELIB}/bottleneck/slow/nonreduce.pyc
${PYSITELIB}/bottleneck/slow/move.pyc
${PYSITELIB}/bottleneck/slow/nonreduce.pyo
${PYSITELIB}/bottleneck/slow/nonreduce_axis.py
${PYSITELIB}/bottleneck/slow/nonreduce_axis.pyc
${PYSITELIB}/bottleneck/slow/nonreduce.pyc
${PYSITELIB}/bottleneck/slow/nonreduce_axis.pyo
${PYSITELIB}/bottleneck/slow/reduce.py
${PYSITELIB}/bottleneck/slow/reduce.pyc
${PYSITELIB}/bottleneck/slow/nonreduce_axis.pyc
${PYSITELIB}/bottleneck/slow/reduce.pyo
${PYSITELIB}/bottleneck/slow/reduce.pyc
${PYSITELIB}/bottleneck/slow/move.py
${PYSITELIB}/bottleneck/slow/nonreduce.py
${PYSITELIB}/bottleneck/slow/nonreduce_axis.py
${PYSITELIB}/bottleneck/slow/reduce.py
${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/src/__init__.pyc
${PYSITELIB}/bottleneck/src/template.pyo
${PYSITELIB}/bottleneck/src/template.pyc
${PYSITELIB}/bottleneck/src/template.py
${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/__init__.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/input_modifcation_test.pyc
${PYSITELIB}/bottleneck/tests/list_input_test.pyo
${PYSITELIB}/bottleneck/tests/move_test.py
${PYSITELIB}/bottleneck/tests/move_test.pyc
${PYSITELIB}/bottleneck/tests/list_input_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/move_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_axis_test.pyc
${PYSITELIB}/bottleneck/tests/nonreduce_test.pyo
${PYSITELIB}/bottleneck/tests/reduce_test.py
${PYSITELIB}/bottleneck/tests/reduce_test.pyc
${PYSITELIB}/bottleneck/tests/nonreduce_test.pyc
${PYSITELIB}/bottleneck/tests/reduce_test.pyo
${PYSITELIB}/bottleneck/tests/reduce_test.pyc
${PYSITELIB}/bottleneck/tests/scalar_input_test.pyo
${PYSITELIB}/bottleneck/tests/scalar_input_test.pyc
${PYSITELIB}/bottleneck/tests/util.pyo
${PYSITELIB}/bottleneck/tests/util.pyc
${PYSITELIB}/bottleneck/tests/input_modifcation_test.py
${PYSITELIB}/bottleneck/tests/list_input_test.py
${PYSITELIB}/bottleneck/tests/move_test.py
${PYSITELIB}/bottleneck/tests/nonreduce_axis_test.py
${PYSITELIB}/bottleneck/tests/nonreduce_test.py
${PYSITELIB}/bottleneck/tests/reduce_test.py
${PYSITELIB}/bottleneck/tests/scalar_input_test.py
${PYSITELIB}/bottleneck/tests/util.py
${PYSITELIB}/bottleneck/version.py
${PYSITELIB}/bottleneck/version.pyc
${PYSITELIB}/bottleneck/version.pyo
7 changes: 4 additions & 3 deletions py-bottleneck/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.1.1.1 2011/04/02 22:35:05 jihbed Exp $

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
SHA1 (Bottleneck-1.2.0.tar.gz) = 9b1c1fe139cfe38ea9b3ecc321cb884d91528b6e
RMD160 (Bottleneck-1.2.0.tar.gz) = a9e5cee81b7f4d317db72188628884ab8f748a27
SHA512 (Bottleneck-1.2.0.tar.gz) = 2dce3626b33923b4ab08047910b38e5531090a58f63a380392b78352c3dc657b947dc6dcad306734beaf130855c10ff9fb0048c027821720660fc62a242daafb
Size (Bottleneck-1.2.0.tar.gz) = 92504 bytes

0 comments on commit 1665447

Please sign in to comment.