Commit 2888d3c0 authored by Jason R. Coombs's avatar Jason R. Coombs

Emit a warning when the fallback spawn was triggered. Ref pypa/distutils#15.

parent 6e92cdab
......@@ -16,6 +16,7 @@ for older versions in distutils.msvc9compiler and distutils.msvccompiler.
import os
import subprocess
import contextlib
import warnings
import unittest.mock
with contextlib.suppress(ImportError):
import winreg
......@@ -524,6 +525,8 @@ class MSVCCompiler(CCompiler) :
raise
else:
return
warnings.warn(
"Fallback spawn triggered. Please update distutils monkeypatch.")
with unittest.mock.patch('os.environ', env):
bag.value = super().spawn(cmd)
......
......@@ -3,3 +3,4 @@ addopts=--doctest-modules
filterwarnings=
# acknowledge that TestDistribution isn't a test
ignore:cannot collect test class 'TestDistribution'
ignore:Fallback spawn triggered
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment