MCPcopy Create free account
hub / github.com/numpy/numpy / _dist_test_spawn

Method _dist_test_spawn

numpy/distutils/ccompiler_opt.py:754–774  ·  view source on GitHub ↗
(cmd, display=None)

Source from the content-addressed store, hash-verified

752 )
753 @staticmethod
754 def _dist_test_spawn(cmd, display=None):
755 try:
756 o = subprocess.check_output(cmd, stderr=subprocess.STDOUT,
757 text=True)
758 if o and re.match(_Distutils._dist_warn_regex, o):
759 _Distutils.dist_error(
760 "Flags in command", cmd ,"aren't supported by the compiler"
761 ", output -> \n%s" % o
762 )
763 except subprocess.CalledProcessError as exc:
764 o = exc.output
765 s = exc.returncode
766 except OSError as e:
767 o = e
768 s = 127
769 else:
770 return None
771 _Distutils.dist_error(
772 "Command", cmd, "failed with exit status %d output -> \n%s" % (
773 s, o
774 ))
775
776_share_cache = {}
777class _Cache:

Callers 1

Calls 2

dist_errorMethod · 0.80
check_outputMethod · 0.45

Tested by

no test coverage detected