File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -313,20 +313,21 @@ def intree_extensions(
313
313
exts .append (Pybind11Extension (qualified_name , [path ]))
314
314
return exts
315
315
316
- for prefix , parent in package_dir .items ():
317
- if path .startswith (parent ):
318
- relname , _ = os .path .splitext (os .path .relpath (path , parent ))
319
- qualified_name = relname .replace (os .path .sep , "." )
320
- if prefix :
321
- qualified_name = prefix + "." + qualified_name
322
- exts .append (Pybind11Extension (qualified_name , [path ]))
323
- break
324
- else :
325
- msg = (
326
- f"path { path } is not a child of any of the directories listed "
327
- f"in 'package_dir' ({ package_dir } )"
328
- )
329
- raise ValueError (msg )
316
+ for path in paths :
317
+ for prefix , parent in package_dir .items ():
318
+ if path .startswith (parent ):
319
+ relname , _ = os .path .splitext (os .path .relpath (path , parent ))
320
+ qualified_name = relname .replace (os .path .sep , "." )
321
+ if prefix :
322
+ qualified_name = prefix + "." + qualified_name
323
+ exts .append (Pybind11Extension (qualified_name , [path ]))
324
+ break
325
+ else :
326
+ msg = (
327
+ f"path { path } is not a child of any of the directories listed "
328
+ f"in 'package_dir' ({ package_dir } )"
329
+ )
330
+ raise ValueError (msg )
330
331
331
332
return exts
332
333
You can’t perform that action at this time.
0 commit comments