Skip to content

Conversation

@hunhoffe
Copy link
Collaborator

@hunhoffe hunhoffe commented Oct 9, 2024

This PR removes code in mlir-aie/python/extras that is currently present in mlir-python-extras and uses mlir-python-extras as a dependency. To differentiate more clearly between what is in mlir-python-extras and what is added, I also separated the import paths; the extras from the external library are found at aie.extras, as before. The additional code that is useful for this project but potentially not upstream-able/applicable for mlir-python-extras has been moved to aie.helpers. I'm open to naming suggestions if there are better ideas than this!

The installation of mlir-python-extras is not as clean as I would like, because to build the python api wheels, dependencies are installed via the requirements.txt file; however, the requirements are parsed in a way that is incompatible with requirements installed via github repos (which is how mlir-python-extras is installed). I think the truly correct way to fix this is to change how we handle dependencies in the wheels; I'm not sure if this is in the scope of this PR or not. I'm happy to get advice.

@hunhoffe hunhoffe changed the title [WIP] Fix import problem [WIP] Fix python-mlir-extras import problem Oct 9, 2024
@hunhoffe hunhoffe mentioned this pull request Oct 9, 2024
@hunhoffe hunhoffe changed the title [WIP] Fix python-mlir-extras import problem [WIP] Use mlir-python-extras as a dependency Oct 9, 2024
@hunhoffe hunhoffe changed the title [WIP] Use mlir-python-extras as a dependency Use mlir-python-extras as a dependency Oct 11, 2024
@hunhoffe
Copy link
Collaborator Author

Waiting on makslevental/mlir-python-extras#101

@hunhoffe
Copy link
Collaborator Author

Should be ready to go now!

@hunhoffe hunhoffe marked this pull request as ready for review October 14, 2024 22:45
@hunhoffe hunhoffe requested review from jgmelber and removed request for jgmelber October 14, 2024 22:45
Copy link
Collaborator

@jgmelber jgmelber left a comment

Choose a reason for hiding this comment

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

LGTM

@hunhoffe
Copy link
Collaborator Author

I was going to wait to merge until #1835 was in, so this PR would be tested with that, but it's taking a while so I did the test locally with quick_setup and it worked for me, so I'll go ahead and merge this now.

@hunhoffe hunhoffe added this pull request to the merge queue Oct 16, 2024
Merged via the queue into main with commit 6fe87bb Oct 16, 2024
68 checks passed
@hunhoffe hunhoffe deleted the python-mlir-extras-compatibility branch October 16, 2024 16:43
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