-
Notifications
You must be signed in to change notification settings - Fork 182
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
Add build requirements in pyproject.toml
to make installations easier
#266
Conversation
Codecov Report
@@ Coverage Diff @@
## master #266 +/- ##
=======================================
Coverage 97.05% 97.05%
=======================================
Files 9 9
Lines 204 204
=======================================
Hits 198 198
Misses 6 6 Continue to review full report at Codecov.
|
Any idea why tests are failing? |
any updates on this feature? |
This is likely not going to happen since |
This pull request had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. |
Closes #265
This pull request does the following:
torch
as a build requirement usingpyproject.toml
as described in https://setuptools.readthedocs.io/en/latest/build_meta.html. The use ofsetup.py
is getting towards the end of life, and using a combination of declarative setup metadata insetup.cfg
andpyproject.toml
is the preferred way forwards. This means that iftorch
isn't already installed before doingpip install torch-scatter
, it gets installed.torch
as a install requirement (i.e., a dependency). This might be a bit redundant of 1, but some tools liketox
create a separate env for the build requirements, so this needs to be duplicated.pip install torch-scatter
. This demonstrates that with the first two changes, it's now possible to make an automated, single step installation oftorch-scatter
.Why is this important
Creating easily installable packages that depend on
torch-scatter
(that don't include the need for manual installation of torch + cuda) is not currently possible because pip's dependency resolver isn't aware of the fact thattorch-scatter
needs torch installed before even trying to build it.