File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 55
66import shutil
77import subprocess
8+ import sys
89from logging import getLogger
910from pathlib import Path
1011from tempfile import TemporaryDirectory
@@ -133,6 +134,25 @@ def build(
133134 )
134135
135136
137+ if sys .platform == "win32" and sys .version_info [:2 ] == (3 , 7 ): # pragma: no cover
138+
139+ def build (
140+ packages : Sequence [str ],
141+ clean_build : bool = True ,
142+ skip_if_already_installed : bool = True ,
143+ ) -> None :
144+ msg = (
145+ "A bug in Python 3.7 on Windows causes this feature to break. "
146+ "For more information see: https://bugs.python.org/issue31226"
147+ )
148+ try :
149+ import pytest
150+ except ImportError :
151+ raise NotImplementedError (msg )
152+ else :
153+ pytest .xfail (msg )
154+
155+
136156def _parse_package_specs (package_strings : Sequence [str ]) -> Dict [str , str ]:
137157 return {
138158 dep : ver
You can’t perform that action at this time.
0 commit comments