diff options
| author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-02-18 12:43:14 +0000 |
|---|---|---|
| committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-02-18 12:43:14 +0000 |
| commit | cfffff3dee854e924d11ad80ad0a9024fe83170d (patch) | |
| tree | f54008c4407e1a8548452ab5a05cee4ee4eee664 /numpy/distutils/misc_util.py | |
| parent | ca84e842144162056592cf97a172708946a049e0 (diff) | |
| download | numpy-cfffff3dee854e924d11ad80ad0a9024fe83170d.tar.gz | |
Fixing mingw32 building: fixes undefined referece __EH_FRAME_BEGIN__ linker failure.
Diffstat (limited to 'numpy/distutils/misc_util.py')
| -rw-r--r-- | numpy/distutils/misc_util.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index 7fe329385..0de24cc94 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -9,7 +9,7 @@ __all__ = ['Configuration', 'get_numpy_include_dirs', 'default_config_dict', 'dict_append', 'appendpath', 'generate_config_py', 'get_cmd', 'allpath', 'get_mathlibs', 'terminal_has_colors', 'red_text', 'green_text', 'yellow_text', - 'blue_text', 'cyan_text', 'cyg2win32', 'all_strings', + 'blue_text', 'cyan_text', 'cyg2win32','mingw32','all_strings', 'has_f_sources', 'has_cxx_sources', 'filter_sources', 'get_dependencies', 'is_local_src_dir', 'get_ext_source_files', 'get_script_files', 'get_lib_source_files', 'get_data_files', @@ -158,6 +158,16 @@ def cyg2win32(path): path = path[10] + ':' + os.path.normcase(path[11:]) return path +def mingw32(): + """ Return true when using mingw32 environment. + """ + if sys.platform=='win32': + if os.environ.get('OSTYPE','')=='msys': + return True + if os.environ.get('MSYSTEM','')=='MINGW32': + return True + return False + ######################### #XXX need support for .C that is also C++ |
