File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,6 @@ def run_rebuild():
195
195
if "site-packages" in relativePath :
196
196
continue
197
197
dirpath , filename = os .path .split (relativePath )
198
- if platform .system () != "Windows" and filename .startswith ("lib" ):
199
- filename = filename [3 :]
200
198
if filename .endswith (".a.a" ):
201
199
filename = filename [:- 2 ]
202
200
if ext_suffix and filename .endswith (ext_suffix ):
@@ -205,6 +203,8 @@ def run_rebuild():
205
203
filename = filename [:- 2 ]
206
204
if filename .endswith (".lib" ):
207
205
filename = filename [:- 4 ]
206
+ if platform .system () != "Windows" and filename .startswith ("lib" ) and len (filename ) > 5 :
207
+ filename = filename [3 :]
208
208
relative_path = filename
209
209
if dirpath :
210
210
relative_path = dirpath .replace ("\\ " , "." ).replace ("/" , "." ) + "." + relative_path
You can’t perform that action at this time.
0 commit comments