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

Sandro Tosi morph at moszumanska.debian.org
Sun Dec 18 03:18:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository python-numpy.

commit 51c16076f33bbb0ecd4d2c22a86d5199fd3ae4f6
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 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
 
 
 #-------------------

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