[Python-modules-commits] [python-numpy] 07/17: Dont fail if we cant import mingw32

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 79503e5c6938ed7e489a4a6c7f2ba262fef3a79e
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Jan 10 22:16:03 2016 +0000

    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
 
 
 #-------------------

-- 
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