Skip to content

Commit 596b2b6

Browse files
committed
Also pass the root as source_dir
1 parent 35189f5 commit 596b2b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

importlib_metadata/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ def find_local(cls, root='.'):
202202
import pep517.build as build
203203
import pep517.build_meta as bm
204204
system = build.compat_system(root)
205-
builder = functools.partial(bm.build_meta, system=system)
205+
builder = functools.partial(
206+
bm.build_meta,
207+
source_dir=root,
208+
system=system,
209+
)
206210
return PathDistribution(zipp.Path(bm.build_meta_as_zip(builder)))
207211

208212
@property

0 commit comments

Comments
 (0)