[Python-modules-commits] [python-numpy] 09/14: merge patched into master
Sandro Tosi
morph at moszumanska.debian.org
Fri Jan 6 04:15:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository python-numpy.
commit 28416e082932b54594f8604b5c2f6e87f1978b77
Merge: ab9042e c28c0b3
Author: Sandro Tosi <morph at debian.org>
Date: Thu Jan 5 16:46:58 2017 -0500
merge patched into master
PKG-INFO | 2 +-
debian/.git-dpm | 6 +-
.../0005-Dont-fail-if-we-cant-import-mingw32.patch | 2 +-
...erts-on-ppc-with-broken-malloc-only-longd.patch | 4 +-
debian/patches/03_force_f2py_version.patch | 2 +-
.../10_use_local_python.org_object.inv_sphinx.diff | 2 +-
debian/patches/adapt_swig_docs_to_debian.patch | 2 +-
debian/patches/python3-soabi.patch | 2 +-
doc/release/1.11.3-notes.rst | 25 +
doc/release/1.12.0-notes.rst | 1205 +-
doc/source/release.rst | 1 +
numpy/add_newdocs.py | 5 +-
numpy/core/function_base.py | 7 +-
numpy/core/numeric.py | 4 +-
numpy/core/src/multiarray/compiled_base.c | 8 -
numpy/core/src/multiarray/convert.c | 13 +-
.../src/multiarray/lowlevel_strided_loops.c.src | 39 +-
numpy/core/src/npymath/npy_math_complex.c.src | 2 +-
numpy/core/src/private/npy_config.h | 5 +
numpy/core/src/umath/ufunc_object.c | 1 -
numpy/core/tests/test_api.py | 2 +-
numpy/core/tests/test_function_base.py | 36 +
numpy/core/tests/test_indexing.py | 9 +
numpy/core/tests/test_multiarray.py | 13 +-
numpy/distutils/command/build_src.py | 11 +-
numpy/distutils/cpuinfo.py | 6 +-
numpy/distutils/fcompiler/compaq.py | 4 +-
numpy/distutils/fcompiler/gnu.py | 2 +-
numpy/distutils/fcompiler/ibm.py | 2 +-
numpy/distutils/fcompiler/intel.py | 2 +-
numpy/distutils/fcompiler/vast.py | 4 +-
numpy/distutils/from_template.py | 8 +-
numpy/distutils/intelccompiler.py | 4 +-
numpy/distutils/mingw32ccompiler.py | 2 +-
numpy/distutils/misc_util.py | 2 +-
numpy/distutils/npy_pkg_config.py | 4 +-
numpy/distutils/system_info.py | 6 +-
numpy/f2py/crackfortran.py | 51 +-
numpy/f2py/tests/src/parameter/constant_both.f90 | 57 +
.../f2py/tests/src/parameter/constant_integer.f90 | 22 +
numpy/f2py/tests/src/parameter/constant_real.f90 | 23 +
numpy/f2py/tests/test_parameter.py | 102 +
numpy/f2py/tests/test_regression.py | 5 +-
numpy/lib/_iotools.py | 2 +-
numpy/lib/function_base.py | 18 +-
numpy/lib/nanfunctions.py | 5 +-
numpy/lib/shape_base.py | 2 +-
numpy/lib/tests/test_nanfunctions.py | 48 +-
numpy/lib/tests/test_packbits.py | 65 +-
numpy/lib/tests/test_shape_base.py | 6 +
numpy/lib/utils.py | 46 +
numpy/ma/extras.py | 57 +-
numpy/ma/tests/test_extras.py | 255 +-
numpy/polynomial/chebyshev.py | 10 +-
numpy/polynomial/hermite.py | 10 +-
numpy/polynomial/hermite_e.py | 10 +-
numpy/polynomial/laguerre.py | 8 +-
numpy/polynomial/legendre.py | 2 +-
numpy/polynomial/polynomial.py | 2 +-
numpy/random/mtrand/mtrand.c | 16819 ++++++++++++-------
numpy/testing/nosetester.py | 12 +-
numpy/testing/utils.py | 43 +-
numpy/version.py | 8 +-
setup.py | 2 +-
64 files changed, 11993 insertions(+), 7151 deletions(-)
diff --cc debian/.git-dpm
index e9a9f26,0000000..d0bdf66
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
+# see git-dpm(1) from git-dpm package
- 991f5fbddc3d7e9c53d8898819ada6e22cf4fdf7
- 991f5fbddc3d7e9c53d8898819ada6e22cf4fdf7
- d18a9b1d0f2516b44ca02d1415f369f9e40adf61
++c28c0b3348de8bdfc617cb5f0e0457ee6c708af9
++c28c0b3348de8bdfc617cb5f0e0457ee6c708af9
++82398c3c99729af4c5ed1441b9e7b637550e5c5e
+82398c3c99729af4c5ed1441b9e7b637550e5c5e
+python-numpy_1.12.0~rc2.orig.tar.gz
+c34b9b68fc38535d462c9b36dc31733ef23167d4
+4332647
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --cc debian/patches/0005-Dont-fail-if-we-cant-import-mingw32.patch
index 07732b7,0000000..fedbb45
mode 100644,000000..100644
--- a/debian/patches/0005-Dont-fail-if-we-cant-import-mingw32.patch
+++ b/debian/patches/0005-Dont-fail-if-we-cant-import-mingw32.patch
@@@ -1,29 -1,0 +1,29 @@@
- From 51c16076f33bbb0ecd4d2c22a86d5199fd3ae4f6 Mon Sep 17 00:00:00 2001
++From bae9feeda6c249e80eda530c0023ede7f5fa5eba Mon Sep 17 00:00:00 2001
+From: Sandro Tosi <morph at debian.org>
+Date: Sun, 10 Jan 2016 22:16:03 +0000
+Subject: Dont fail if we cant import mingw32
+
+This is required for the Debian version helper, which reads core.setup_common and
+executes it, without using all the Python import machinery. This way we will
+skip the requirement to have the whole numpy module working while we only care
+(at this point) for the API/ABI versions.
+---
+ numpy/core/setup_common.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
+index d9e9ba5..8f8deca 100644
+--- a/numpy/core/setup_common.py
++++ b/numpy/core/setup_common.py
+@@ -6,7 +6,10 @@ import warnings
+ import copy
+ import binascii
+
+-from numpy.distutils.misc_util import mingw32
++try:
++ from numpy.distutils.misc_util import mingw32
++except:
++ mingw32 = lambda *args, **kwargs: None
+
+
+ #-------------------
diff --cc debian/patches/0006-disable-asserts-on-ppc-with-broken-malloc-only-longd.patch
index ec3ba68,0000000..ba182d2
mode 100644,000000..100644
--- a/debian/patches/0006-disable-asserts-on-ppc-with-broken-malloc-only-longd.patch
+++ b/debian/patches/0006-disable-asserts-on-ppc-with-broken-malloc-only-longd.patch
@@@ -1,29 -1,0 +1,29 @@@
- From 991f5fbddc3d7e9c53d8898819ada6e22cf4fdf7 Mon Sep 17 00:00:00 2001
++From c28c0b3348de8bdfc617cb5f0e0457ee6c708af9 Mon Sep 17 00:00:00 2001
+From: Sandro Tosi <morph at debian.org>
+Date: Mon, 11 Jan 2016 23:51:23 +0000
+Subject: disable asserts on ppc with broken malloc only longdouble affected
+ will still work with softfaults
+
+Author: Julian Taylor <jtaylor.debian at googlemail.com>
+---
+ numpy/core/src/multiarray/lowlevel_strided_loops.c.src | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
- index b8381ab..58daa47 100644
++index 9a5c300..124d57c 100644
+--- a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
++++ b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
+@@ -7,6 +7,13 @@
+ *
+ * See LICENSE.txt for the license.
+ */
++#if defined(__powerpc__) & !defined(__powerpc64__)
++#ifndef NDEBUG
++// disable asserts malloc broken
++// https://sourceware.org/bugzilla/show_bug.cgi?id=6527
++#define NDEBUG
++#endif
++#endif
+
+ #define PY_SSIZE_T_CLEAN
+ #include "Python.h"
diff --cc debian/patches/03_force_f2py_version.patch
index 46f7524,0000000..5e5b23e
mode 100644,000000..100644
--- a/debian/patches/03_force_f2py_version.patch
+++ b/debian/patches/03_force_f2py_version.patch
@@@ -1,23 -1,0 +1,23 @@@
- From b1fbf011c03587bd7bfba23c80561dd0b8e6a1e2 Mon Sep 17 00:00:00 2001
++From ef7cc55104024ccdef55d2472096538382d3ad5b Mon Sep 17 00:00:00 2001
+From: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
+Date: Sun, 11 Oct 2015 10:12:15 -0700
+Subject: force generation f2py postfixed with interpreter version
+
+Patch-Name: 03_force_f2py_version.patch
+---
+ numpy/f2py/setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/numpy/f2py/setup.py b/numpy/f2py/setup.py
+index 3204129..0ca45ec 100644
+--- a/numpy/f2py/setup.py
++++ b/numpy/f2py/setup.py
+@@ -55,7 +55,7 @@ def configuration(parent_package='', top_path=None):
+ config.make_svn_version_py()
+
+ def generate_f2py_py(build_dir):
+- f2py_exe = 'f2py' + os.path.basename(sys.executable)[6:]
++ f2py_exe = 'f2py'+sys.version[:3]
+ if f2py_exe[-4:] == '.exe':
+ f2py_exe = f2py_exe[:-4] + '.py'
+ if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py':
diff --cc debian/patches/10_use_local_python.org_object.inv_sphinx.diff
index 2c09af2,0000000..4573832
mode 100644,000000..100644
--- a/debian/patches/10_use_local_python.org_object.inv_sphinx.diff
+++ b/debian/patches/10_use_local_python.org_object.inv_sphinx.diff
@@@ -1,24 -1,0 +1,24 @@@
- From 8505e775c4b9d898f2c4e3194f0fa846a125cf6e Mon Sep 17 00:00:00 2001
++From d06a89df8f4a7c6b5e9ec23bde2bd3740556c875 Mon Sep 17 00:00:00 2001
+From: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
+Date: Sun, 11 Oct 2015 10:12:16 -0700
+Subject: Use a local copy of object.inv from doc.python.org, instead of
+ downloading it each time from the internet
+
+Patch-Name: 10_use_local_python.org_object.inv_sphinx.diff
+---
+ doc/source/conf.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/doc/source/conf.py b/doc/source/conf.py
+index 8c18e42..faa289c 100644
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -200,7 +200,7 @@ texinfo_documents = [
+ # Intersphinx configuration
+ # -----------------------------------------------------------------------------
+ intersphinx_mapping = {
+- 'python': ('https://docs.python.org/dev', None),
++ 'python': ('https://docs.python.org/dev', '../../debian/python.org_objects.inv'),
+ 'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
+ 'matplotlib': ('http://matplotlib.org', None)
+ }
diff --cc debian/patches/adapt_swig_docs_to_debian.patch
index d85e3b1,0000000..1817d1a
mode 100644,000000..100644
--- a/debian/patches/adapt_swig_docs_to_debian.patch
+++ b/debian/patches/adapt_swig_docs_to_debian.patch
@@@ -1,45 -1,0 +1,45 @@@
- From ab71744964e7af4e7998e210b95f42373691b97b Mon Sep 17 00:00:00 2001
++From d2b401b251565b8e95732cfd01f9868dcf0b9c7d Mon Sep 17 00:00:00 2001
+From: Sandro Tosi <morph at debian.org>
+Date: Sun, 11 Oct 2015 10:12:18 -0700
+Subject: Adapt SWIG documentation to Debian
+
+ Location of `swig` directory in Debian is specific to our distro, so the
+ documentation needs adaptation.
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2015-02-08
+Patch-Name: adapt_swig_docs_to_debian.patch
+---
+ doc/source/reference/swig.interface-file.rst | 4 ++--
+ doc/source/reference/swig.testing.rst | 3 ++-
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/doc/source/reference/swig.interface-file.rst b/doc/source/reference/swig.interface-file.rst
+index 94fe83d..1352e54 100644
+--- a/doc/source/reference/swig.interface-file.rst
++++ b/doc/source/reference/swig.interface-file.rst
+@@ -166,8 +166,8 @@ assignments in lines 19 and 20.
+ Using numpy.i
+ -------------
+
+-The ``numpy.i`` file is currently located in the ``tools/swig``
+-sub-directory under the ``numpy`` installation directory. Typically,
++The ``numpy.i`` file is currently located in the ``swig``
++sub-directory in the ``python-numpy-doc`` package directory. Typically,
+ you will want to copy it to the directory where you are developing
+ your wrappers.
+
+diff --git a/doc/source/reference/swig.testing.rst b/doc/source/reference/swig.testing.rst
+index 13642a5..7c9d152 100644
+--- a/doc/source/reference/swig.testing.rst
++++ b/doc/source/reference/swig.testing.rst
+@@ -11,7 +11,8 @@ for a total of 888 typemaps supported "out of the box". Each of these
+ typemaps, in turn, might require several unit tests in order to verify
+ expected behavior for both proper and improper inputs. Currently,
+ this results in more than 1,000 individual unit tests executed when
+-``make test`` is run in the ``numpy/tools/swig`` subdirectory.
++``make test`` is run in the ``swig`` directory of ``python-numpy-doc``
++package.
+
+ To facilitate this many similar unit tests, some high-level
+ programming techniques are employed, including C and `SWIG`_ macros,
diff --cc debian/patches/python3-soabi.patch
index 9c6e3ee,0000000..376f9dc
mode 100644,000000..100644
--- a/debian/patches/python3-soabi.patch
+++ b/debian/patches/python3-soabi.patch
@@@ -1,48 -1,0 +1,48 @@@
- From 27587e85011f435e27c12fc72992317a5276ccad Mon Sep 17 00:00:00 2001
++From 04ca92e9b6ff68d8c0fe909c1d4c47c8f74110c7 Mon Sep 17 00:00:00 2001
+From: Julian Taylor <jtaylor at ubuntu.com>
+Date: Sun, 11 Oct 2015 10:12:17 -0700
+Subject: adapt to python3 multiarch soabi
+
+ python3 soabi contains multiarch but does not export it via SOABI. So hardcode
+ it and disable a test. get_shared_lib_extension can't be properly fixed:
+ doko: we still want this as the default for people building extensions not
+ only for the distribution
+ Nothing in debian uses it to get the python extension.
+Forwarded: not-needed, debian specific
+Patch-Name: python3-soabi.patch
+---
+ numpy/ctypeslib.py | 8 ++++++++
+ numpy/tests/test_ctypeslib.py | 1 +
+ 2 files changed, 9 insertions(+)
+
+diff --git a/numpy/ctypeslib.py b/numpy/ctypeslib.py
+index 7332822..582c157 100644
+--- a/numpy/ctypeslib.py
++++ b/numpy/ctypeslib.py
+@@ -134,6 +134,14 @@ else:
+ so_ext2 = get_shared_lib_extension(is_python_ext=True)
+ if not so_ext2 == so_ext:
+ libname_ext.insert(0, libname + so_ext2)
++ try:
++ import sysconfig
++ so_ext3 = '.%s-%s.so' % (sysconfig.get_config_var('SOABI'),
++ sysconfig.get_config_var('MULTIARCH'))
++ libname_ext.insert(0, libname + so_ext3)
++ except (KeyError, ImportError):
++ pass
++
+ else:
+ libname_ext = [libname]
+
+diff --git a/numpy/tests/test_ctypeslib.py b/numpy/tests/test_ctypeslib.py
+index 2c58f11..05ba15e 100644
+--- a/numpy/tests/test_ctypeslib.py
++++ b/numpy/tests/test_ctypeslib.py
+@@ -34,6 +34,7 @@ class TestLoadLibrary(TestCase):
+ " (import error was: %s)" % str(e))
+ print(msg)
+
++ @dec.skipif(True, 'Skipped as per debian/patches/python3-soabi.patch')
+ @dec.skipif(not _HAS_CTYPE,
+ "ctypes not available on this python installation")
+ @dec.knownfailureif(sys.platform ==
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-numpy.git
More information about the Python-modules-commits
mailing list