Skip to content

[setup] remove torch dependency #2333

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

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

FrankLeeeee
Copy link
Contributor

Overview

The setup.py and op_builder both have dependencies on torch, however, during pypi wheel build, the environment is plain Python without torch, leading to build error.

Command to build pypi release: python setup.py sdist build

Issue Number

Fixed #2332

What does this PR do?

This PR make the torch dependency optional in both setup.py and op_builder. With this PR, the command can run without failure.

Screenshot 2023-01-05 at 13 49 10

@FrankLeeeee FrankLeeeee merged commit 8711310 into hpcaitech:main Jan 5, 2023
@FrankLeeeee FrankLeeeee deleted the hotfix/op-builder branch January 5, 2023 06:19
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.

[BUG]: Cannot build wheel with torch
2 participants