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 5
5
6
6
import shutil
7
7
import subprocess
8
+ import sys
8
9
from logging import getLogger
9
10
from pathlib import Path
10
11
from tempfile import TemporaryDirectory
@@ -133,6 +134,25 @@ def build(
133
134
)
134
135
135
136
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
+
136
156
def _parse_package_specs (package_strings : Sequence [str ]) -> Dict [str , str ]:
137
157
return {
138
158
dep : ver
You can’t perform that action at this time.
0 commit comments