We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a2941 commit c977026Copy full SHA for c977026
distutils/tests/test_install.py
@@ -16,6 +16,7 @@
16
from distutils.core import Distribution
17
from distutils.errors import DistutilsOptionError
18
from distutils.extension import Extension
19
+from distutils.util import is_mingw
20
21
from distutils.tests import support, missing_compiler_executable
22
@@ -120,7 +121,7 @@ def _expanduser(path):
120
121
assert 'usersite' in cmd.config_vars
122
123
actual_headers = os.path.relpath(cmd.install_headers, site.USER_BASE)
- if os.name == 'nt':
124
+ if os.name == 'nt' and not is_mingw():
125
site_path = os.path.relpath(os.path.dirname(orig_site), orig_base)
126
include = os.path.join(site_path, 'Include')
127
else:
0 commit comments