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

Sandro Tosi morph at moszumanska.debian.org
Sun Aug 20 20:21:38 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 d9827cadf2de92020a0aff312e9376617457752d
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