debian/0000775000000000000000000000000012316536542007177 5ustar debian/README.Debian0000664000000000000000000000137112265331732011237 0ustar numexpr for Debian ------------------ It is possible to find more documentation at http://code.google.com/p/numexpr/ A _detailed_ changelog is available at: http://code.google.com/p/numexpr/wiki/ReleaseNotes Some issue related to threading have been reported on sparc machines. The problem is hard to reproduce and do not affects all installations. For this reason the default number of threads for computations is forced to one on sparc. You can verify if your sparc installation is affected by the problem by running the numexpr test suite. If you are not affected you can safely change the number of threads to be used for computations using the "numexpr.set_num_threads" function. -- Wen Heping Wed, 14 Jul 2010 21:50:27 +0800 debian/source/0000775000000000000000000000000012265331732010474 5ustar debian/source/format0000664000000000000000000000001412265331732011702 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000001174412265331732011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: numexpr Source: http://code.google.com/p/numexpr/ Files: * Copyright: 2007-2008 David M. Cooke 2009-2010 Francesc Alted 2011-2012 David M. Cooke Tim Hochberg Francesc Alted Ivan Vilata Gregor Thalhammer Mark Wiebe Gaëtan de Menten Antonio Valentino License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: numexpr/win32/pthread.* Copyright: 2009 Andrzej K. Haczewski License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . See also https://code.google.com/p/numexpr/issues/detail?id=109#c5 Files: numexpr/cpuinfo.py Copyright: 2002 Pearu Peterson License: other Permission to use, modify, and distribute this software is given under the terms of the NumPy (BSD style) license. . NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. Pearu Peterson . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2010 Wen Heping License: GPL-3.0 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/changelog0000664000000000000000000001553712316536542011064 0ustar numexpr (2.2.2-4build1) trusty; urgency=medium * No change rebuild to drop python3.3 compiled extension. -- Dimitri John Ledkov Tue, 01 Apr 2014 14:21:38 +0100 numexpr (2.2.2-4) unstable; urgency=low * Standard version dumped to 3.9.5 (no change) * debian/control - remove the Breaks field: compatibility with PyTables < 3.0 has been restored in numexpr 2.2.2 (see https://code.google.com/p/numexpr/wiki/ReleaseNotes) * debian/rules - fixed file conflict between python3-numexpr and python3-numexpr-dbg packages (Closes: #735131) -- Antonio Valentino Mon, 13 Jan 2014 10:38:06 +0000 numexpr (2.2.2-3) unstable; urgency=medium * debian/rules: - run unittests in verbose mode * debian/patches - dropped patch: 0002-relax-test-on-sparc.patch It does not actually fix the issue. - new patch 0002-skip-threading-tests-on-sparc.patch Skip all tests related to threading on sparc -- Antonio Valentino Mon, 09 Dec 2013 18:54:24 +0000 numexpr (2.2.2-2) unstable; urgency=low * New patch: 0002-relax-test-on-sparc.patch Introduces a temporary workaround to fix a couple of test failiures on sparc. -- Antonio Valentino Tue, 26 Nov 2013 18:44:55 +0000 numexpr (2.2.2-1) unstable; urgency=low * New upstream release (fixes a build failure on s390) -- Antonio Valentino Sat, 28 Sep 2013 09:03:27 +0000 numexpr (2.2.1-1) unstable; urgency=low * New upstream release -- Antonio Valentino Mon, 09 Sep 2013 19:41:04 +0000 numexpr (2.2-1) experimental; urgency=low * New upstream release * Added a link to extra license info for win32/pthread.* in the copyright file * debian/patches - refresh all patches - drop 0002-Pthread-license.patch (applied upstream) -- Antonio Valentino Sat, 07 Sep 2013 15:38:16 +0000 numexpr (2.1-1) experimental; urgency=low * New upstream release * Removed parches applied upstream: 0002-feature-forwarded-upstream-fix-FTBFS-on-Hurd-and-KFr.patch and 0003-Set-default-nthreads-to-one-on-sparc.patch * Refresh remaining patches * New patch: include the correct license statement in win32/pthread.* comment headers * Standards version bumped to 3.9.4 (no change) * Compat set to 9 * New packages for python3 and python3-dbg (Closes: #683954) * Install upstream changelog * Re-enable unittests at build time on sparc * The noopt option is now honored * numexpr 2.1 breaks pythbles < 3.0 * The copyright file has been updated. * Removed empty README.source file -- Antonio Valentino Sat, 27 Apr 2013 10:32:31 +0000 numexpr (2.0.1-3) unstable; urgency=low * Disable unittests at build time on sparc -- Antonio Valentino Sat, 21 Apr 2012 19:25:39 +0200 numexpr (2.0.1-2) experimental; urgency=low * Fixing versioned build-depends on numpy version of which carries epoch -- now build-depends on >= 1:1.6.0 -- Yaroslav Halchenko Mon, 12 Mar 2012 21:59:50 -0400 numexpr (2.0.1-1) experimental; urgency=low [ Antonio Valentino ] * New upstream release * debian/patches - dropped 0001-fix-unittests.patch (included upstream) - 0001-debian-changes-1.3.1-1.patch (updated sequence number) - 0003-feature-forwarded-upstream-fix-FTBFS-on-Hurd-and-KFr.patch (refreshed and sequence number updated) * debian/copyright - updated author list and years - checked with the cme tool * debian/control - build-depend on numpy >= 1.6 * debian/watch - now point to the project site instead of pypi.python.org [ Yaroslav Halchenko ] * debian/gbp.conf - build off experimental branch * debian/control - added myself to Uploaders -- Yaroslav Halchenko Mon, 12 Mar 2012 11:39:04 -0400 numexpr (1.4.2-3.2) unstable; urgency=low * fix for real the FTBFS * debian/patches - 0003-feature-forwarded-upstream-fix-FTBFS-on-Hurd-and-KFr.patch (updated) -- Picca Frédéric-Emmanuel Sun, 04 Mar 2012 13:57:37 +0100 numexpr (1.4.2-3.1) unstable; urgency=low * Non-maintainer upload. * debian/patches - patch series regenerated with gbp-pq - 0001-fix-unittests.patch (regenerated) - 0002-debian-changes-1.3.1-1.patch (regenerated) - 0003-feature-forwarded-upstream-fix-FTBFS-on-Hurd-and-KFr.patch (new) -- Picca Frédéric-Emmanuel Sun, 04 Mar 2012 12:06:58 +0100 numexpr (1.4.2-3) unstable; urgency=low [Antonio Valentino] * New patch for fixing unit tests on 32 bit platforms * Added local option file * Re-enabled unit tests at build time * TODO file added to the debian directory * Updated copyright format URL * Standard version bumped to 3.9.3 (no change) [Picca Frédéric-Emmanuel] * debian/control - check all the dependencies with cme - python-all (>= 2.6.6-3~) we are using dh_python2 -- Antonio Valentino Sat, 25 Feb 2012 12:18:08 +0100 numexpr (1.4.2-2) unstable; urgency=low [Antonion Valentino] * Switch to dh8 and python2 (dropped cdbs) * Standard version bumped to 3.9.2 (no changes) * Copyright file updated to DEP5 format * Added local option file * Updated package description * New -dbg package (Closes: #657733) * Perform unit tests at build time * Local option file added in debian/source [picca] * debian/rules - deactivated unit testing for now (waiting for the latest upstream version) * debian/control - now the packaging is done under debian-science - add Antonio Valentino as uploaders -- Antonio Valentino Wed, 15 Feb 2012 21:59:20 +0100 numexpr (1.4.2-1.2) unstable; urgency=low * Non-maintainer upload. * Move call to dh_numpy under the install rule. -- Miguel de Val Borro Sat, 03 Dec 2011 18:05:28 +0100 numexpr (1.4.2-1.1) unstable; urgency=medium * Non-maintainer upload. * Fix "missing dependency on python-numpy" by adding the dh_numpy helper script to the rules file (Closes: #641794) * Urgency set to medium due to rc bug fix -- Miguel de Val Borro Fri, 02 Dec 2011 22:09:40 +0100 numexpr (1.4.2-1) unstable; urgency=low * Update to 1.4.2 -- Wen Heping Wed, 06 Apr 2011 19:00:00 -0600 numexpr (1.4.1-1) unstable; urgency=low * Update to 1.4.1 -- Wen Heping Sun, 31 Oct 2010 19:00:00 -0600 numexpr (1.3.1-2) unstable; urgency=low * move to sid -- Wen Heping Sun, 27 Oct 2010 19:00:00 -0600 numexpr (1.3.1-1) experimental; urgency=low * Initial Release. (Closes: #589165) -- Wen Heping Fri, 15 July 2010 23:54:05 -0600 debian/control0000664000000000000000000000761012316536542010606 0ustar Source: numexpr Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Science Maintainers Uploaders: Wen Heping , Antonio Valentino , Yaroslav Halchenko Section: python Priority: optional X-Python-Version: >= 2.6 X-Python3-Version: >= 3.2 Build-Depends: debhelper (>= 9.0.0~), python-all-dev, python-all-dbg, python3-all-dev, python3-all-dbg, python-setuptools, python-numpy (>= 1:1.6.0), python-numpy-dbg, python3-numpy, python3-numpy-dbg Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/numexpr.git Vcs-Git: git://anonscm.debian.org/debian-science/packages/numexpr.git Homepage: http://code.google.com/p/numexpr/ Package: python-numexpr Architecture: any Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: Fast numerical array expression evaluator for Python and NumPy Numexpr package evaluates multiple-operator array expressions many times faster than NumPy can. It accepts the expression as a string, analyzes it, rewrites it more efficiently, and compiles it to faster Python code on the fly. It's the next best thing to writing the expression in C and compiling it with a specialized just-in-time (JIT) compiler, i.e. it does not require a compiler at runtime. . This is the Python 2 version of the package. Package: python-numexpr-dbg Architecture: any Section: debug Priority: extra Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-numexpr (= ${binary:Version}) Recommends: python-dbg, python-numpy-dbg Description: Fast numerical array expression evaluator for Python and NumPy (debug ext) Numexpr package evaluates multiple-operator array expressions many times faster than NumPy can. It accepts the expression as a string, analyzes it, rewrites it more efficiently, and compiles it to faster Python code on the fly. It's the next best thing to writing the expression in C and compiling it with a specialized just-in-time (JIT) compiler, i.e. it does not require a compiler at runtime. . This package contains the extension built for the Python 2 debug interpreter. Package: python3-numexpr Architecture: any Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: Fast numerical array expression evaluator for Python 3 and NumPy Numexpr package evaluates multiple-operator array expressions many times faster than NumPy can. It accepts the expression as a string, analyzes it, rewrites it more efficiently, and compiles it to faster Python code on the fly. It's the next best thing to writing the expression in C and compiling it with a specialized just-in-time (JIT) compiler, i.e. it does not require a compiler at runtime. . This package contains pyepr for Python 3. Package: python3-numexpr-dbg Architecture: any Section: debug Priority: extra Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, python3-numexpr (= ${binary:Version}) Recommends: python3-dbg, python3-numpy-dbg Description: Fast numerical array expression evaluator for Python 3 and NumPy (debug ext) Numexpr package evaluates multiple-operator array expressions many times faster than NumPy can. It accepts the expression as a string, analyzes it, rewrites it more efficiently, and compiles it to faster Python code on the fly. It's the next best thing to writing the expression in C and compiling it with a specialized just-in-time (JIT) compiler, i.e. it does not require a compiler at runtime. . This package contains the extension built for the Python 3 debug interpreter. debian/rules0000775000000000000000000000373612265331732010265 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # Get the supported Python versions PY2VERS = $(shell pyversions -r -v) PY3VERS = $(shell py3versions -r -v) ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) export CFLAGS ?= -O0 endif %: dh $@ --with python2,python3 --buildsystem=python_distutils build-python%: python$* setup.py build python$*-dbg setup.py build override_dh_auto_build: $(PY3VERS:%=build-python%) dh_auto_build install-python%: python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb python$*-dbg setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb override_dh_auto_install: $(PY3VERS:%=install-python%) dh_auto_install override_dh_install: # Install everything excluding the *_d.so debug extensions to python-numexpr dh_install -X"*_d.so" "debian/tmp/usr/lib/python2*" -p python-numexpr find debian/python-numexpr -name '*_d.so' | xargs -r rm -f dh_install -X"*dmu.so" -X"*dm.so" "debian/tmp/usr/lib/python3*" -p python3-numexpr find debian/python3-numexpr -name '*.cpython-??dm-*.so' | xargs -r rm -f # Install the debug extensions to python-numexpr-dbg dh_install "debian/tmp/usr/lib/python2*/*-packages/numexpr/*_d.so" -p python-numexpr-dbg dh_install "debian/tmp/usr/lib/python3*/*-packages/numexpr/*.cpython-??dm*.so" -p python3-numexpr-dbg # Continue with regular dh_install dh_install dh_numpy dh_numpy3 override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -e -x;\ for py in $(PY2VERS) $(PY3VERS); do \ cd $(CURDIR)/build/lib.*-$$py;\ env PYTHONPATH=. python$$py numexpr/tests/test_numexpr.py -v;\ cd $(CURDIR)/build/lib.*-$$py-pydebug;\ env PYTHONPATH=. python$$py-dbg numexpr/tests/test_numexpr.py -v;\ done endif override_dh_installchangelogs: dh_installchangelogs -k RELEASE_NOTES.txt .PHONY: override_dh_auto_build override_dh_auto_install override_dh_install \ override_dh_auto_test override_dh_installchangelogs debian/watch0000664000000000000000000000020712265331732010224 0ustar version=3 http://code.google.com/p/numexpr/downloads/list?can=1 .*/numexpr-(\d[\d\.]*)\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz) debian/patches/0000775000000000000000000000000012265331732010623 5ustar debian/patches/0001-debian-changes-1.3.1-1.patch0000664000000000000000000000103712265331732015647 0ustar From: Debian Science Maintainers Date: Sun, 4 Mar 2012 12:04:34 +0100 Subject: debian-changes-1.3.1-1 --- numexpr.egg-info/SOURCES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/numexpr.egg-info/SOURCES.txt b/numexpr.egg-info/SOURCES.txt index f95273e..00dc3aa 100644 --- a/numexpr.egg-info/SOURCES.txt +++ b/numexpr.egg-info/SOURCES.txt @@ -6,6 +6,7 @@ LICENSE.txt MANIFEST.in README.txt RELEASE_NOTES.txt +setup.cfg setup.py site.cfg.example ./numexpr/tests/__init__.py debian/patches/0002-skip-threading-tests-on-sparc.patch0000664000000000000000000000531212265331732020015 0ustar From: Antonio Valentino Date: Sun, 8 Dec 2013 12:32:28 +0000 Subject: Skip tests related to threading on sparc --- numexpr/tests/test_numexpr.py | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/numexpr/tests/test_numexpr.py b/numexpr/tests/test_numexpr.py index 3b4ba80..8ccd40a 100644 --- a/numexpr/tests/test_numexpr.py +++ b/numexpr/tests/test_numexpr.py @@ -10,6 +10,7 @@ import os import sys +import platform import warnings import numpy @@ -279,23 +280,24 @@ class test_evaluate(TestCase): else: self.fail() - # Execution order set here so as to not use too many threads - # during the rest of the execution. See #33 for details. - def test_changing_nthreads_00_inc(self): - a = linspace(-1, 1, 1e6) - b = ((.25*a + .75)*a - 1.5)*a - 2 - for nthreads in range(1,7): - numexpr.set_num_threads(nthreads) - c = evaluate("((.25*a + .75)*a - 1.5)*a - 2") - assert_array_almost_equal(b, c) - - def test_changing_nthreads_01_dec(self): - a = linspace(-1, 1, 1e6) - b = ((.25*a + .75)*a - 1.5)*a - 2 - for nthreads in range(6, 1, -1): - numexpr.set_num_threads(nthreads) - c = evaluate("((.25*a + .75)*a - 1.5)*a - 2") - assert_array_almost_equal(b, c) + if 'sparc' not in platform.machine(): + # Execution order set here so as to not use too many threads + # during the rest of the execution. See #33 for details. + def test_changing_nthreads_00_inc(self): + a = linspace(-1, 1, 1e6) + b = ((.25*a + .75)*a - 1.5)*a - 2 + for nthreads in range(1,7): + numexpr.set_num_threads(nthreads) + c = evaluate("((.25*a + .75)*a - 1.5)*a - 2") + assert_array_almost_equal(b, c) + + def test_changing_nthreads_01_dec(self): + a = linspace(-1, 1, 1e6) + b = ((.25*a + .75)*a - 1.5)*a - 2 + for nthreads in range(6, 1, -1): + numexpr.set_num_threads(nthreads) + c = evaluate("((.25*a + .75)*a - 1.5)*a - 2") + assert_array_almost_equal(b, c) tests = [ @@ -767,7 +769,8 @@ def suite(): for n in range(niter): theSuite.addTest(unittest.makeSuite(test_numexpr)) - theSuite.addTest(unittest.makeSuite(test_numexpr2)) + if 'sparc' not in platform.machine(): + theSuite.addTest(unittest.makeSuite(test_numexpr2)) theSuite.addTest(unittest.makeSuite(test_evaluate)) theSuite.addTest(unittest.makeSuite(TestExpressions)) theSuite.addTest(unittest.makeSuite(test_int32_int64)) debian/patches/series0000664000000000000000000000011312265331732012033 0ustar 0001-debian-changes-1.3.1-1.patch 0002-skip-threading-tests-on-sparc.patch debian/docs0000664000000000000000000000005212265331732010044 0ustar ANNOUNCE.txt README.txt RELEASE_NOTES.txt debian/compat0000664000000000000000000000000212265331732010372 0ustar 9 debian/TODO0000664000000000000000000000022512265331732007663 0ustar Debian TODO =========== * push tags for pristine-tar branch -- Antonio Valentino Sat, 18 Feb 2012 18:16:29 +0100 debian/pyversions0000664000000000000000000000000512265331732011333 0ustar 2.5- debian/pycompat0000664000000000000000000000000212265331732010743 0ustar 2