[Python-modules-commits] [python-numpy] 09/17: merge patched into master

Sandro Tosi morph at moszumanska.debian.org
Sun Nov 26 17:40:31 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 158623096518fbd2322a8b01158b982dc0a9f31b
Merge: 23615c8 5266f21
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Nov 26 09:50:29 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 |    2 +-
 debian/patches/03_force_f2py_version.patch         |    2 +-
 .../10_use_local_python.org_object.inv_sphinx.diff |    6 +-
 debian/patches/adapt_swig_docs_to_debian.patch     |    2 +-
 debian/patches/python3-soabi.patch                 |    2 +-
 doc/release/1.13.2-notes.rst                       |   58 +
 doc/release/1.13.3-notes.rst                       |   64 +
 doc/source/conf.py                                 |    2 +
 doc/source/release.rst                             |    3 +
 numpy/core/code_generators/generate_umath.py       |    4 +-
 numpy/core/numeric.py                              |    2 +-
 numpy/core/src/multiarray/arraytypes.c.src         |   16 +-
 numpy/core/src/multiarray/cblasfuncs.c             |    3 +-
 numpy/core/src/multiarray/item_selection.c         |   44 +-
 numpy/core/src/multiarray/sequence.c               |   37 +-
 numpy/core/src/multiarray/temp_elide.c             |    6 +-
 numpy/core/src/npymath/npy_math_complex.c.src      |    8 +-
 numpy/core/src/private/npy_config.h                |   13 +
 numpy/core/src/umath/loops.c.src                   |   10 -
 numpy/core/src/umath/loops.h.src                   |    3 -
 numpy/core/src/umath/ufunc_type_resolution.c       |   74 +-
 numpy/core/src/umath/ufunc_type_resolution.h       |    9 +-
 numpy/core/tests/test_defchararray.py              |   10 +-
 numpy/core/tests/test_multiarray.py                |   41 +-
 numpy/core/tests/test_numeric.py                   |   41 +-
 numpy/core/tests/test_ufunc.py                     |   85 +-
 numpy/distutils/fcompiler/gnu.py                   |    3 +-
 numpy/distutils/fcompiler/intel.py                 |    2 +-
 numpy/distutils/mingw32ccompiler.py                |    2 +-
 numpy/distutils/tests/test_fcompiler_gnu.py        |    3 +-
 numpy/doc/basics.py                                |    6 +-
 numpy/lib/arraypad.py                              |    8 +
 numpy/lib/function_base.py                         |   21 +-
 numpy/lib/polynomial.py                            |   10 +-
 numpy/lib/tests/test_arraypad.py                   |   11 +
 numpy/lib/tests/test_function_base.py              |   17 +-
 numpy/lib/tests/test_polynomial.py                 |   18 +-
 numpy/polynomial/chebyshev.py                      |   16 +-
 numpy/polynomial/hermite.py                        |   20 +-
 numpy/polynomial/hermite_e.py                      |   20 +-
 numpy/polynomial/laguerre.py                       |   20 +-
 numpy/polynomial/legendre.py                       |   20 +-
 numpy/polynomial/polynomial.py                     |    2 +-
 numpy/random/mtrand/mtrand.c                       | 3582 ++++++++++++--------
 numpy/random/mtrand/numpy.pxd                      |   12 +-
 numpy/version.py                                   |    8 +-
 setup.py                                           |    2 +-
 50 files changed, 2713 insertions(+), 1647 deletions(-)

diff --cc debian/.git-dpm
index 8a64562,0000000..bd4de16
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
- 214c56af4a982247c2dbbbe72ccf07ec1b2073cb
- 214c56af4a982247c2dbbbe72ccf07ec1b2073cb
- b10475f0d78c8a87a159760ecfeb5083d8f33c27
++5266f217bc304c886f0f046584aa905bd2c9e0e8
++5266f217bc304c886f0f046584aa905bd2c9e0e8
++91cce07f4d5710256bb8773227edc1acc82b3e45
 +91cce07f4d5710256bb8773227edc1acc82b3e45
 +python-numpy_1.13.3.orig.tar.gz
 +87215725cb1f870903831b85afd3761fb7674564
 +4520295
 +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 159269d,0000000..afd5d38
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 d9827cadf2de92020a0aff312e9376617457752d Mon Sep 17 00:00:00 2001
++From 79503e5c6938ed7e489a4a6c7f2ba262fef3a79e 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 1b39840..6ea4959 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 5e382f4,0000000..9507fb9
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 214c56af4a982247c2dbbbe72ccf07ec1b2073cb Mon Sep 17 00:00:00 2001
++From 5266f217bc304c886f0f046584aa905bd2c9e0e8 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 397aaf2..297422f 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 a0519e8,0000000..12711ca
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 09c2b7dc3a92ef64af87dca072b0b5e422e46eea Mon Sep 17 00:00:00 2001
++From 994109547758aa44fabf905b72c89a77b9c6a9fa 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 5287be3,0000000..907b75b
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 716f582a7b91eda1abcbc08e6e9b6d024b2df824 Mon Sep 17 00:00:00 2001
++From bd80f7b5ae35c749c7008d4d243ce2623443f532 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 cce0716..d99893f 100644
++index 91d413b..7fa8c63 100644
 +--- a/doc/source/conf.py
 ++++ b/doc/source/conf.py
- @@ -201,7 +201,7 @@ texinfo_documents = [
++@@ -203,7 +203,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 dcbbecb,0000000..b45e4e4
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 21720a15c4421b9752e5cec467e0e9fbe1127c53 Mon Sep 17 00:00:00 2001
++From 42a86cb0131a92d1315a4debac592e2ea5914db2 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 6dd74f4..0efb79d 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 b25bce4,0000000..5cefd5b
mode 100644,000000..100644
--- a/debian/patches/python3-soabi.patch
+++ b/debian/patches/python3-soabi.patch
@@@ -1,48 -1,0 +1,48 @@@
- From 67521400850ae615b1ad18b3835f2b3cc6c31d25 Mon Sep 17 00:00:00 2001
++From 1fb6a5d6af6160eadd9abaed2d1787f28be4e7f8 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