2

Does anyone know if it is required that a Python repository has setup.py script in root directory in order for pip install git+[git repo] to work? How does pip find dependent packages from the source code?

Thanks!

username123
  • 913
  • 1
  • 11
  • 29

1 Answers1

1

Yes. Dependent packages are looked up via said setup.py (setup_requires and install_requires).

phd
  • 82,685
  • 13
  • 120
  • 165
  • What if a package depends on another third-party package that is not included in PyPI but publicly available on Github? How should I write `install_requires` in this case? – username123 Jun 23 '17 at 15:17
  • See https://pip.pypa.io/en/latest/user_guide/#requirements-files – phd Jun 23 '17 at 16:49