diff --git a/builder/__main__.py b/builder/__main__.py index 83e1b8cf..aeabba3b 100644 --- a/builder/__main__.py +++ b/builder/__main__.py @@ -11,6 +11,7 @@ from builder.apk import install_apks from builder.infra import ( + create_wheels_list, extract_packages_from_index, check_available_binary, create_wheels_folder, @@ -111,8 +112,8 @@ def builder( wheels_dir = create_wheels_folder(output) wheels_index = create_wheels_index(index) - - package_index = extract_packages_from_index(wheels_index) + wheels_list = create_wheels_list(index) + package_index = extract_packages_from_index(wheels_list) # Setup build helper if apk: diff --git a/builder/infra.py b/builder/infra.py index 0ab3f068..e42cdc35 100644 --- a/builder/infra.py +++ b/builder/infra.py @@ -39,10 +39,15 @@ def create_wheels_folder(base_folder: Path) -> Path: def create_wheels_index(base_index: str) -> str: - """Create wheels specific URL.""" + """Create wheels specific URL with a PEP 503 index.""" return f"{base_index}/{_MUSLLINUX}-index/" +def create_wheels_list(base_index: str) -> str: + """Create wheels specific URL that has a list of all wheel files.""" + return f"{base_index}/{_MUSLLINUX}/" + + def create_package_map(packages: List[str]) -> Dict[str, AwesomeVersion]: """Create a dictionary from package base name to package and version string.""" results = {}