Using pyproject.toml when some dependencies import packages in their setup.py #3568
-
Some dependencies of dependencies import packages, e.g. Hence, there is a need for being able to install packages in "waves". How should we reconcile this if we just want to use The way I've gotten around it is with a #!/usr/bin/env python
import pip
import setuptools
pip.main(['install', 'torch']) # some dependencies use torch in their setup.py
if __name__ == '__main__':
setuptools.setup() however this isn't ideal because installing stuff in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @illeatmyhat , what I would do first is to try to open a PR to the dependency in question adding a Have you tried to add pytorch in your packages |
Beta Was this translation helpful? Give feedback.
-
If the |
Beta Was this translation helpful? Give feedback.
If the
setup.py
for BasicSR imports torch, then torch needs to be listed in thebuild-system.requires
of BasicSR.