From 98092d3c7707f4086db978a1da233dfda2b9fc43 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Fri, 2 Jan 2026 09:23:16 -0600 Subject: [PATCH] chore(cx_setup): update include_files logic to conditionally add directories --- cx_setup.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/cx_setup.py b/cx_setup.py index 92bea37..00fa221 100644 --- a/cx_setup.py +++ b/cx_setup.py @@ -8,12 +8,17 @@ from meshchatx.src.version import __version__ ROOT = Path(__file__).resolve().parent PUBLIC_DIR = ROOT / "meshchatx" / "public" -include_files = [ - (str(PUBLIC_DIR), "public"), - ("logo", "logo"), -] +include_files = [] -if (ROOT / "bin").exists(): +if PUBLIC_DIR.exists() and PUBLIC_DIR.is_dir(): + include_files.append((str(PUBLIC_DIR), "public")) + +logo_dir = ROOT / "logo" +if logo_dir.exists() and logo_dir.is_dir(): + include_files.append(("logo", "logo")) + +bin_dir = ROOT / "bin" +if bin_dir.exists() and bin_dir.is_dir(): include_files.append(("bin", "bin")) packages = [