Skip to content

Commit e57b798

Browse files
committed
linux: properly delete __pycache__ directories
We were feeding in the wrong source path, resulting in a no-op. This change reduces the size of the raw tar file from ~26MB to ~19MB.
1 parent 0d3ae2a commit e57b798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpython-linux/build-cpython.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ make -j `nproc` install DESTDIR=/build/out/python
7070

7171
# Downstream consumers don't require bytecode files. So remove them.
7272
# Ideally we'd adjust the build system. But meh.
73-
find ${ROOT}/out/python/install -type d -name __pycache__ -print0 | xargs -0 rm -rf
73+
find /build/out/python/install -type d -name __pycache__ -print0 | xargs -0 rm -rf
7474

7575
# Also copy object files so they can be linked in a custom manner by
7676
# downstream consumers.

0 commit comments

Comments
 (0)