From ff96bf4b70e47d875975ba374305130414188095 Mon Sep 17 00:00:00 2001 From: claude-timemachine Date: Thu, 4 Jun 2026 23:20:02 +0200 Subject: [PATCH] build: exclude __pycache__ from pyz (-68 KB) Switch from 'cp -r cloud_sync' to 'cp cloud_sync/*.py' so .pyc files from a prior dev run don't get embedded. Pyz shrinks 112 KB -> 44 KB. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8edf191..810732a 100644 --- a/Makefile +++ b/Makefile @@ -16,8 +16,8 @@ build: cloud-sync.pyz # point zipapp at that staging dir. cloud-sync.pyz: cloud_sync/__main__.py $(wildcard cloud_sync/*.py) rm -rf build/pyz - mkdir -p build/pyz - cp -r cloud_sync build/pyz/ + mkdir -p build/pyz/cloud_sync + cp cloud_sync/*.py build/pyz/cloud_sync/ $(PY) -m zipapp build/pyz -p "/usr/bin/env $(PY)" \ -m cloud_sync.cli:main -o $@ rm -rf build/pyz