pyz-dispenser / cpython-static

Static builds of CPython
1 stars 0 forks source link

`build-std.py` ignores too many files #4

Open duckinator opened 4 years ago

duckinator commented 4 years ago

I think this check in build-std.py may be excluding things we don't want:

if 'test' in fname.parts:

Tested by doing this:

~/dev/python/pyz-dispenser/cpython-static/cpython/Lib HEAD+ find -type f | grep -vE '^./test/' | grep /test/ | wc -l
112

none of those 112 files are Lib/test/*

duckinator commented 4 years ago

I think basically we can do,

TEST_DIR = SRC_DIR / 'test'

and then change the condition to:

if str(fname).startswith(str(TEST_DIR)):

... or something like that.