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

Runtime dependencies are not (correctly) specified #157

Closed
sisp opened this issue Aug 4, 2021 · 5 comments
Closed

Runtime dependencies are not (correctly) specified #157

sisp opened this issue Aug 4, 2021 · 5 comments
Labels

Comments

@sisp
Copy link

sisp commented Aug 4, 2021

torch-sparse has a number of runtime dependencies, but only scipy (without a version specifier) is specified in setup.py via install_requires. This breaks dependency resolution and makes it hard to use torch-sparse in a properly set up project.

I've identified the following dependencies:

You should also determine proper version specifiers for the other dependencies, so that a dependency resolver can correctly determine the versions of all packages to be installed.

@rusty1s
Copy link
Owner

rusty1s commented Aug 5, 2021

Thanks for creating the issue. We sadly cannot add torch nor torch-scatter as a dependency, as torch needs to be installed in advance to make installation succeed, and torch-scatter is best installed from wheels.

As such, the newly provided conda installation procedure fixes those problems and is now the recommended way to install torch-sparse.

@sisp
Copy link
Author

sisp commented Aug 5, 2021

[...] as torch needs to be installed in advance to make installation succeed [...]

If we could solve #156, then torch could be added as a dependency, right?

[...] and torch-scatter is best installed from wheels.

So the problem is that torch-scatter is only published as a source distribution package on pypi.org, right? Is there any reason why you don't publish wheels there?

As such, the newly provided conda installation procedure fixes those problems and is now the recommended way to install torch-sparse.

Conda is becoming a bit of an issue for users engaged in commercial activities (i.e. enterprises) because they've changed their terms of service. I'd be nice to have a proper setup path using standard Python packages. 🙂

@rusty1s
Copy link
Owner

rusty1s commented Aug 5, 2021

I'm not a big fan of adding torch as dependency, as it is totally unclear which PyTorch version (CUDA, CPU) gets installed (the same holds true for torch-scatter as its version needs to align with the PyTorch/CUDA version. That's also the reason why we cannot simply push wheels to PyPi, as binaries depend both on PyTorch and CUDA version.

@sisp
Copy link
Author

sisp commented Aug 5, 2021

Ah, yes, I see. 🤔

@github-actions
Copy link

github-actions bot commented Feb 2, 2022

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?

@github-actions github-actions bot added the stale label Feb 2, 2022
@rusty1s rusty1s closed this as completed Feb 2, 2022
RexYing pushed a commit to RexYing/pytorch_sparse that referenced this issue Apr 26, 2022
* connector doc

* typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants