@@ -243,29 +243,22 @@ def find_packages(*, namespaces=False, root_dir=None, **kwargs):
243
243
where = kwargs .pop ('where' , ['.' ])
244
244
if isinstance (where , str ):
245
245
where = [where ]
246
- target = [_nest_url_style_path (root_dir , path ) for path in where ]
246
+ target = [_nest_path (root_dir , path ) for path in where ]
247
247
from distutils import log
248
248
log .warn (f"find_packages cwd={ os .getcwd ()!r} root_dir={ root_dir !r} " )
249
249
for p in target :
250
250
log .warn (f"find_packages where={ p !r} { kwargs !r} " )
251
251
return list (chain_iter (PackageFinder .find (x , ** kwargs ) for x in target ))
252
252
253
253
254
- def _nest_url_style_path (parent , path ):
254
+ def _nest_path (parent , path ):
255
255
from distutils import log
256
256
257
- log .warn (f"_nest_url_style_path parent={ parent !r} path={ path !r} " )
257
+ log .warn (f"_nest_path parent={ parent !r} path={ path !r} "
258
+ f" norm={ os .path .normpath (path )!r} " )
258
259
259
260
path = parent if path == "." else os .path .join (parent , path )
260
- return _url_style_path (path )
261
-
262
-
263
- def _url_style_path (path ):
264
- from distutils import log
265
-
266
- parts = Path (os .path .normpath (path )).parts
267
- log .warn (f"_url_style_path parts={ parts !r} " )
268
- return "/" .join (parts ) or "."
261
+ return os .path .normpath (path )
269
262
270
263
271
264
def version (value ):
0 commit comments