Skip to content

Commit

Permalink
fix: convert path separators to match os.pathsep
Browse files Browse the repository at this point in the history
this is a focused fix as referenced in:

pypa#445 (comment)
  • Loading branch information
mawillcockson committed Sep 30, 2021
1 parent 3d5df53 commit d910413
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flit/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def find_nearest_pkg(rel_path):


def include_path(p):
p = str(Path(p))
return not (p.startswith('dist' + os.sep)
or (os.sep+'__pycache__' in p)
or p.endswith('.pyc'))
Expand Down

0 comments on commit d910413

Please sign in to comment.