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

Ondřej Nový onovy at moszumanska.debian.org
Mon Jul 11 06:57:47 UTC 2016


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

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

commit 4621d639fb263509b3d494152c110f833e3e82fb
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