diff options
| author | DWesl <22566757+DWesl@users.noreply.github.com> | 2021-07-23 09:16:57 -0400 |
|---|---|---|
| committer | DWesl <22566757+DWesl@users.noreply.github.com> | 2021-07-23 09:16:57 -0400 |
| commit | 84f54ce716bc3939269c5131d52b8abd773fe7ee (patch) | |
| tree | a3ff85b3b7e3c3cd851e3540e7f18233f3dfa1fe /numpy/distutils | |
| parent | c804775b973b7de803eb279c1dcf5c15f1b74ad3 (diff) | |
| download | numpy-84f54ce716bc3939269c5131d52b8abd773fe7ee.tar.gz | |
BLD: Allow cygpath errors to propagate from cyg2win32.
The only reasons I can think for this to fail are an incomplete
installation or an environment hostile to fork(), both of which should
probably be fixed before trying to compile NumPy.
Diffstat (limited to 'numpy/distutils')
| -rw-r--r-- | numpy/distutils/misc_util.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index 69393a151..dcf7cdb92 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -408,12 +408,10 @@ def cyg2win32(path: str) -> str: """ if sys.platform != "cygwin": return path - try: - return subprocess.check_output( - ["/usr/bin/cygpath", "--windows", path], universal_newlines=True - ) - except subprocess.CalledProcessError: - return path + return subprocess.check_output( + ["/usr/bin/cygpath", "--windows", path], universal_newlines=True + ) + def mingw32(): """Return true when using mingw32 environment. |
