Skip to content

Commit 75fcd93

Browse files
committed
Add flit-core installation for pip 26+ compatibility
pip 26+ uses flit-core as its build backend (via PEP 517) instead of setuptools. When installing pip with BP_PIP_VERSION=latest, we need to provide flit-core in the --find-links directory so pip can build itself. Changes: - InstallPip() now downloads flit-core to /tmp/pip alongside pip - Gracefully handles missing flit-core (cflinuxfs3 with pip 25.2) - Only logs warning if flit-core unavailable (doesn't fail) This fixes the error: ERROR: Could not find a version that satisfies the requirement flit-core<4,>=3.11 (from versions: none) Note: flit-core is only in manifest for cflinuxfs4/5, which matches the stacks that use pip 26.1.2 after the previous commit. Related: - pip 26.1.2 pyproject.toml requires: flit-core<4,>=3.11 - Manifest has flit-core 3.12.0 for cflinuxfs4/cflinuxfs5
1 parent 88b3f88 commit 75fcd93

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/python/supply/supply.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,13 @@ func (s *Supplier) InstallPip() error {
341341
return err
342342
}
343343

344+
// pip 26+ requires flit-core as a build dependency
345+
// Install it to the same tempPath so pip can find it during build
346+
if err := s.Installer.InstallOnlyVersion("flit-core", tempPath); err != nil {
347+
// Log warning but continue - older pip versions don't need flit-core
348+
s.Log.Warning("Could not install flit-core (required for pip 26+): %v", err)
349+
}
350+
344351
if err := s.Command.Execute(s.Stager.BuildDir(), indentWriter(os.Stdout), indentWriter(os.Stderr),
345352
"python",
346353
"-m", "pip",

0 commit comments

Comments
 (0)