Skip to content

Add support for backend dependencies#194

Merged
danieldk merged 1 commit intomainfrom
backend-deps
Dec 16, 2025
Merged

Add support for backend dependencies#194
danieldk merged 1 commit intomainfrom
backend-deps

Conversation

@danieldk
Copy link
Member

@danieldk danieldk commented Dec 15, 2025

This change adds support for backend-specific dependencies. We use the dependencies from kernel-builder and validate upon loading that all dependencies are permitted dependencies.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@danieldk danieldk marked this pull request as ready for review December 15, 2025 12:53
from typing import Dict
from urllib.request import Request, urlopen

URL = "https://raw.githubusercontent.com/huggingface/kernel-builder/refs/heads/backend-deps/build2cmake/src/python_dependencies.json"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of a chicken and the egg-situation. But since this PR is simpler, I think it's a better entry point than the kernel-builder PR. Will update s/backend-deps/main/ once the PR is merged on the kernel-builder side.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed right ?

Copy link
Member Author

@danieldk danieldk Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the kernel-builder PR is merged, I'll update the URL.

Copy link
Contributor

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good

from typing import Dict
from urllib.request import Request, urlopen

URL = "https://raw.githubusercontent.com/huggingface/kernel-builder/refs/heads/backend-deps/build2cmake/src/python_dependencies.json"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed right ?

@danieldk danieldk merged commit b5c2145 into main Dec 16, 2025
15 checks passed
@danieldk danieldk deleted the backend-deps branch December 16, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants