Skip to content

Issues from importing torch in setup.pyΒ #265

Open
@cthoyt

Description

@cthoyt

As we all know, dealing with C extensions is pretty unruly and it's nice that setup.py is flexible in this regard. However, because this package's setup.py imports PyTorch, it causes all sorts of havoc with downstream code when you include torch_scatter in your own requirements. This usually leads to instructions to iteratively (manually) install PyTorch then some downstream stuff.

I think there's a solution available to alleviate this: use a pyproject.toml to specify build requirements so you can simply pip install this package without torch already installed. This was demonstrated for a different kind of package in kivy/pyjnius#594

I'll submit a PR to demonstate

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions