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

Sandro Tosi morph at moszumanska.debian.org
Sat Feb 13 23:48:49 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 b9886721a9246da4c9e1130224e72d827a650160
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 ba7521e..764ad03 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