diff --git a/pyodide-build/pyodide_build/buildall.py b/pyodide-build/pyodide_build/buildall.py index 04ae97317..1c1c18bc4 100755 --- a/pyodide-build/pyodide_build/buildall.py +++ b/pyodide-build/pyodide_build/buildall.py @@ -301,6 +301,9 @@ def generate_packages_json(pkg_map: Dict[str, BasePackage]) -> Dict: if "soupsieve" in package_data["packages"]: package_data["packages"]["soupsieve"]["depends"].append("beautifulsoup4") + # re-order packages by name + package_data["packages"] = dict(sorted(package_data["packages"].items())) + return package_data