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

Torch dependency #12

Open
cdicle-motional opened this issue Feb 10, 2021 · 5 comments
Open

Torch dependency #12

cdicle-motional opened this issue Feb 10, 2021 · 5 comments
Assignees

Comments

@cdicle-motional
Copy link

@krrish94 Your package depends on the torch library but it is not listed in setup.py. Can you add that dependency to your setup.py?

@krrish94
Copy link
Owner

@cdicle-nutonomy This is an intentional omission -- the reason being everyone prefers using a different version of pytorch (based on their python/conda/pip/cuda configs)

@krrish94 krrish94 added the wontfix This will not be worked on label Feb 11, 2021
@krrish94 krrish94 self-assigned this Feb 11, 2021
@krrish94
Copy link
Owner

Your point is well-taken though. We'll improve our messaging in the README to better articulate this pytorch dependency

@cdicle-motional
Copy link
Author

cdicle-motional commented Feb 11, 2021

@krrish94 I think you can put something like

setup(
    ...
    install_requires=[
        ...
        'torch ~= 1.0 ;',
        ...
    ],
    ...
)

which should cover practically all torch versions but at least inform pip that the package depends on torch.

@krrish94
Copy link
Owner

This is a great point

@krrish94 krrish94 reopened this Feb 15, 2021
@krrish94 krrish94 removed the wontfix This will not be worked on label Feb 16, 2021
@GordonGustafson
Copy link

Since the setup.py file currently requires torch, I don't think adding install_requires to setup.py will fix the issue, as the setup.py can't even be run until torch is installed.

The ideal solution is for wheels to be published to pypi, so the package can be installed without running setup.py. @krrish94 do you think that would be possible?

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

No branches or pull requests

3 participants