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

Publish precompiled wheels in Github release and add wheel index #365

Merged

Conversation

martinResearch
Copy link
Contributor

@martinResearch martinResearch commented Aug 23, 2024

The PR adds a mechanism to publish precompiled wheels in github releases and pypi and add a wheel index html file to be able to install precompiled wheels for a specific pytorch and cuda version using a single line like

pip install gsplat --index-url https://martinresearch.github.io/gsplat/whl/pt20cu118

One can also omit the pt20cu118 and use

pip install gsplat==1.2.0+pt20cu118 --index-url https://martinresearch.github.io/gsplat/whl

but then the full version needs to be specified to make sure one gets the right pytorch and cuda version.

The full list of pre-compiled wheel can be found here
Is that a solution you would potentially be happy to merge in your repository?

This PR also tries to upload all the wheels to pypi I am not sure pipy will allows us to upload wheels with "+" sign in the wheel name (i.e using local version to specify the cuda and pytorch versions), and I am not sure whe want to upload these wheels to pypi, so the upload step could be removed for the precompiled wheels

@martinResearch
Copy link
Contributor Author

That would be great! Any news?

I will try to finish addressing
The comment on automatic index.html files generation this weekend.

@martinResearch
Copy link
Contributor Author

@liruilong940607 thank you very much for the feedback. I tried to address your comments. Any remaining concern or improvements suggestion before I publish the PR?

wheels_per_local_version = {}
for wheel in wheels:
local_version = wheel["local_version"]
if local_version not in wheels_per_local_version:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if local_version is not and and local_version not in wheels_per_local_version:

@martinResearch martinResearch marked this pull request as ready for review September 26, 2024 12:38
@liruilong940607
Copy link
Collaborator

This looks great! Thanks for all the updates! I'm doing test now

Copy link
Collaborator

@liruilong940607 liruilong940607 left a comment

Choose a reason for hiding this comment

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

I tested it out and did some fixes here and there. Now I think it is good to go. Thanks a lot for digging into this @martinResearch !

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