Install package which has setup_requires from local source distributions

纵然是瞬间 提交于 2019-12-01 18:16:36

The problem (besides that your --find-links is typoed as dists instead of dist) is that the first thing pip does to install a package is run python setup.py egg_info, without bothering to pass along any of the package-finding information. Pip doesn't actually want setuptools to install any dependencies! It wants setuptools to spit out the dependencies as egg_info so pip can read them and go fetch them itself.

But dependencies in setup_requires are always installed on any invocation of setup.py. I'd go so far as to say that setup_requires is completely incompatible with pip.

The alternative is... to just put your build code in the build step. Pip won't try to build your package until all of its dependencies are installed anyway.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!