如何为setUptools.setup指定不同的非PYPI软件包索引URL?
我正在尝试在PYPI(而是Jfrog/fifactory中的jfrog/fipactory中)指定软件包依赖关系,以> setuptoools.setup()
我尝试过的东西:
使用
depended> dependency_links
对setUptools.setup()
的参数类似:depentency_links = ['http:// user:passwere@artifactoryHost:8082/api/pypi/pypi/pypi/simple']
但是.0(发布2019-01-22)。
使用
install_requires
参数到setuptools.setup()
so:install_requires = [mypackage @ http://用户:passwere @ artifactory主机:8082/api/pypi/pypi/pypi/simple]
但是install_requires
似乎期望将源代码下载为[.zip]存档。
理想情况下,我正在寻找与PIP的额外index-url
设置等效的东西,该设置可直接指定到setuptools.setup()
。
I'm trying to specify a package dependency not in pypi [but in jfrog/Artifactory] to setuptoools.setup()
Things I've tried:
Using the
dependency_links
argument tosetuptools.setup()
like so:dependency_links=['http://USER:PASSWORD@ARTIFACTORYHOST:8082/api/pypi/pypi/simple']
but dependency_links is now deprecated since 19.0 (released 2019-01-22).
Using the
install_requires
argument tosetuptools.setup()
like so:install_requires=[mypackage @ http://USER:PASSWORD@ARTIFACTORY HOST:8082/api/pypi/pypi/simple]
but install_requires
seems to expect to download source code as a [.zip] archive.
Ideally, I'm looking for something equivalent to pip's extra-index-url
setting, which is specifiable directly to setuptools.setup()
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自Abravalheri
在
https://github.com/pypa/setuptools/setuptools/pulls/pull/3364 :
From abravalheri
at
https://github.com/pypa/setuptools/pull/3364: