Skip to content

Commit 3973a63

Browse files
committed
fix: pre-built wheel indexing for local wheel server
Pre-built wheels were not being indexed in the local wheel server's simple API directory structure after download. This caused dependency resolution failures when those wheels were needed as build dependencies. Call update_wheel_mirror() in _download_prebuilt() to ensure pre-built wheels are immediately available to subsequent builds, matching the behavior of _build_wheel(). Fixes dependency resolution for packages that require pre-built wheels as build dependencies. Signed-off-by: Pavan Kalyan Reddy Cherupally <pcherupa@redhat.com>
1 parent 4014cde commit 3973a63

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/fromager/bootstrapper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,9 @@ def _download_prebuilt(
500500

501501
wheel_filename = wheels.download_wheel(req, wheel_url, self.ctx.wheels_prebuilt)
502502
unpack_dir = self._create_unpack_dir(req, resolved_version)
503+
# Update the wheel mirror so pre-built wheels are indexed
504+
# and available to subsequent builds that need them as dependencies
505+
server.update_wheel_mirror(self.ctx)
503506
return (wheel_filename, unpack_dir)
504507

505508
def _look_for_existing_wheel(

0 commit comments

Comments
 (0)