Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(py): Detect extensions used by a hugr when creating a package #1531

Open
aborgna-q opened this issue Sep 12, 2024 · 0 comments
Open

(py): Detect extensions used by a hugr when creating a package #1531

aborgna-q opened this issue Sep 12, 2024 · 0 comments
Labels
python Pull requests that update Python code

Comments

@aborgna-q
Copy link
Collaborator

  • Add a ExtOps.extension helper that returns ExtOps._op_def._extension. Maybe something that returns the full set of required extensions (including types and transitive dependencies?)
  • Add a hugr.ext.Package.from_hugr that computes the requirements by traversing the graph.

Currently guppy and tket2 hardcode a list of extensions, we should replace this with an auto-detected list.

@ss2165 ss2165 added the python Pull requests that update Python code label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

2 participants