(cmd, display=None)
| 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 = {} |
| 777 | class _Cache: |
no test coverage detected