fix(setup): add torch as build system requirement #1479
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
I've added a new
pyproject.toml
file to the project that contains static information according to PEP 517.I've also added
torch
as build system requirement so that isolated installation viasetuptools
(and alsopoetry
and probably most other PEP 517 compliant build frontends) works.Tests?
I've tested this via
pip install --isolated --verbose --editable .
from within the project directory (and via
poetry
when I provide this project as path dependency).Anything else?
I should also say that I have no clue about any other specifics that might make the installation or packaging fail and just did this to solve my current problem of integrating
pytorch3d
intopoetry
. Anyway, I'm also interested in getting your feedback on this..WDYT?