Skip to content

Commit d910413

Browse files
committed
fix: convert path separators to match os.pathsep
this is a focused fix as referenced in: pypa#445 (comment)
1 parent 3d5df53 commit d910413

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flit/sdist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def find_nearest_pkg(rel_path):
8080

8181

8282
def include_path(p):
83+
p = str(Path(p))
8384
return not (p.startswith('dist' + os.sep)
8485
or (os.sep+'__pycache__' in p)
8586
or p.endswith('.pyc'))

0 commit comments

Comments
 (0)