Skip to content

REF: Eliminate discovery hook fallback in Stage 2 build pipeline #996

@LalatenduMohanty

Description

@LalatenduMohanty

During Stage 2 builds (build-sequence / build-parallel), if cached requirement files (build-system-requirements.txt, build-backend-requirements.txt, build-sdist-requirements.txt) are missing, fromager silently falls back to running PEP 517 discovery hooks and making network requests. This defeats the purpose of separating discovery from compilation.

The fallback happens in three functions in dependencies.py:

  • get_build_system_dependencies()
  • get_build_backend_dependencies()
  • get_build_sdist_dependencies()

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions