Skip to content

Conversation

@tlopex
Copy link
Member

@tlopex tlopex commented Aug 27, 2025

This pr migrates the TVM Python packaging system from the setup.py flow to the modern, PEP 517/518 compliant pyproject.toml standard, which allows us to produce a single, Python-version-agnostic wheel.
This change streamlines the process for both developers and users.
For local development, you can now set up a fully-functional editable environment with a single command: pip install -e ..
To create the distributable package for release, simply run pip wheel -w dist . , which will produce a universal wheel in the dist/ folder. This ensures that end-users can reliably install TVM with a standard pip install tvm, regardless of their specific Python 3 version.

@tlopex
Copy link
Member Author

tlopex commented Aug 27, 2025

cc @tqchen

@tqchen
Copy link
Member

tqchen commented Aug 27, 2025

also cc @MasterJH5574 , would be great to test the wheel for specifically cuda related usecases like cutlass(maybe we need to also update mlc),

@MasterJH5574
Copy link
Contributor

would be great to test the wheel for specifically cuda related usecases like cutlass(maybe we need to also update mlc),

Sure. Happy to test when this PR gets ready.

Copy link
Member

@tqchen tqchen left a comment

Choose a reason for hiding this comment

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

one final comment, please cross check locally

@tqchen
Copy link
Member

tqchen commented Aug 27, 2025

@tlopex @MasterJH5574 please help cross check once ready

@tlopex
Copy link
Member Author

tlopex commented Aug 28, 2025

cc @MasterJH5574
I think this is ready for checking

@MasterJH5574
Copy link
Contributor

I think this is ready for checking

Great, I'll find a time in the next few days. BTW there is a windows CI error that we need to fix.

@tlopex
Copy link
Member Author

tlopex commented Aug 28, 2025

I think this is ready for checking

Great, I'll find a time in the next few days. BTW there is a windows CI error that we need to fix.

How could we fix it? Just by committing again to restart CI?

@tqchen
Copy link
Member

tqchen commented Aug 28, 2025

windows should be fixed already by #18245. we don't need to be gree to merge

We consider should followup and change the conda based windows ci to use the pip wheel based now that we have the scikit-build-core

@MasterJH5574 MasterJH5574 merged commit 3e13b03 into apache:main Aug 28, 2025
12 of 13 checks passed
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
MasterJH5574 added a commit to MasterJH5574/tvm that referenced this pull request Aug 29, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
tqchen pushed a commit that referenced this pull request Aug 29, 2025
Following #18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
Following apache#18239, this PR fixes a few issues we ran into during
testing the packaging flow through scikit-build-core.
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