diff --git a/core b/core index 477dffe..faa71d2 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 477dffe02cc220fae75727d3bc0d2598c6d710d0 +Subproject commit faa71d23fe0006ebea0a3c81d8fde9106ac528e3 diff --git a/scripts/package.py b/scripts/package.py index 9b86281..115b682 100644 --- a/scripts/package.py +++ b/scripts/package.py @@ -3,7 +3,7 @@ pixi run package # writes package/programming-plus-.zip -pplus-core (the core/ submodule) goes in as its checkout tracks it. Nothing git ignores goes in: no .DS_Store, __pycache__, scratch/, dist/, site/, node_modules/ or +pplus-core (the core/ submodule, with its own submodule library/) goes in as its checkouts track it. Nothing git ignores goes in: no .DS_Store, __pycache__, scratch/, dist/, site/, node_modules/ or .pixi/. Files are stored under a top folder named programming-plus/, as the shared zips were. Standard library only, like the corpus pipeline. """ @@ -31,7 +31,7 @@ def main() -> int: subs = git("config", "-f", ".gitmodules", "--get-regexp", r"\.path$").split() if (ROOT / ".gitmodules").exists() else [] for sub in subs[1::2]: if (ROOT / sub / ".git").exists(): - tracked = subprocess.run(["git", "ls-files", "-z"], cwd=ROOT / sub, check=True, capture_output=True, text=True).stdout + tracked = subprocess.run(["git", "ls-files", "-z", "--recurse-submodules"], cwd=ROOT / sub, check=True, capture_output=True, text=True).stdout names += [f"{sub}/{n}" for n in tracked.split("\0") if n] names = sorted(n for n in set(names) if (ROOT / n).is_file()) out_dir = ROOT / "package"