-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix(setup): add torch as build system requirement #1479
base: main
Are you sure you want to change the base?
Conversation
...also move static information from setup.py to pyproject.toml
Hi @wsascha! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
We were discussing this on #1419 . I don't think this is the right kind of change. But also I don't really understand the problem you are trying to solve. From my point of view, I generally want all users to pick their version of PyTorch manually. |
There's a difference between "I want users to pick their torch version manually" and "I need to have torch installed before I can even know what dependencies this library has". As far as I can see, your library's deps (and a lot of other project meta data) are not even dependent on a specific torch version. – They are just passed to the Anyway, I figured there's currently a blocker for adding torch as build requirement as I consider this a bug which is resolved sooner or later. If you'd still like me to make other project information available in a PEP 517 compliant way, I can adapt this pr. – let me know what you think. |
When you say you "consider this a bug", do you mean the behaviour of pip or this issue in pytorch3d? Unless someone can clearly explain how not to break things which are currently working, pytorch3d isn't going to change on this soon and there isn't a bug in pytorch3d. The discussion might as well be had on #1419 though, not here. |
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?