Skip to content

Commit

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

pypa#445 (comment)
  • Loading branch information
mawillcockson committed Dec 4, 2021
1 parent 63d45f7 commit 4691b9d
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 @@ -96,6 +96,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 4691b9d

Please sign in to comment.