88import shutil
99import stat
1010import subprocess
11+ import sys
1112import tempfile
1213import zipfile
13- import sys
1414
1515from base64 import urlsafe_b64encode
1616from io import StringIO
@@ -185,7 +185,11 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
185185 python_version_minor = sys .version_info [1 ]
186186 build_dir = self ._path / "build"
187187 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+ )
189193 if libs :
190194 lib = libs [0 ]
191195
@@ -198,7 +202,7 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
198202 if rel_path in wheel .namelist ():
199203 continue
200204
201- #logger.debug(f"Adding: {rel_path}")
205+ # logger.debug(f"Adding: {rel_path}")
202206 print (f"Adding: { rel_path } " )
203207
204208 self ._add_file (wheel , pkg , rel_path )
@@ -210,10 +214,13 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
210214 self ._add_file (
211215 wheel ,
212216 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+ ),
214222 )
215223
216-
217224 # The result of building the extensions
218225 # does not exist, this may due to conditional
219226 # builds, so we assume that it's okay
0 commit comments