8
8
import shutil
9
9
import stat
10
10
import subprocess
11
+ import sys
11
12
import tempfile
12
13
import zipfile
13
- import sys
14
14
15
15
from base64 import urlsafe_b64encode
16
16
from io import StringIO
@@ -185,7 +185,11 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
185
185
python_version_minor = sys .version_info [1 ]
186
186
build_dir = self ._path / "build"
187
187
libs : list [Path ] = list (build_dir .glob ("lib.*" ))
188
- scripts : list [Path ] = list (build_dir .glob (f"scripts-{ python_version_major } .{ python_version_minor } /*" ))
188
+ scripts : list [Path ] = list (
189
+ build_dir .glob (
190
+ f"scripts-{ python_version_major } .{ python_version_minor } /*"
191
+ )
192
+ )
189
193
if libs :
190
194
lib = libs [0 ]
191
195
@@ -198,7 +202,7 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
198
202
if rel_path in wheel .namelist ():
199
203
continue
200
204
201
- #logger.debug(f"Adding: {rel_path}")
205
+ # logger.debug(f"Adding: {rel_path}")
202
206
print (f"Adding: { rel_path } " )
203
207
204
208
self ._add_file (wheel , pkg , rel_path )
@@ -210,10 +214,13 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
210
214
self ._add_file (
211
215
wheel ,
212
216
abs_path ,
213
- Path .joinpath (Path (self .wheel_data_folder ), "scripts" , abs_path .name ),
217
+ Path .joinpath (
218
+ Path (self .wheel_data_folder ),
219
+ "scripts" ,
220
+ abs_path .name ,
221
+ ),
214
222
)
215
223
216
-
217
224
# The result of building the extensions
218
225
# does not exist, this may due to conditional
219
226
# builds, so we assume that it's okay
0 commit comments