擅长:python、mysql、java
<p>在中使用setuptools时设置.pySVU可以指定安装HTTP包的位置:</p>
<p><a href="http://peak.telecommunity.com/DevCenter/setuptools#dependencies-that-aren-t-in-pypi" rel="nofollow">http://peak.telecommunity.com/DevCenter/setuptools#dependencies-that-aren-t-in-pypi</a></p>
<p>您可以在某个“秘密”位置发布Bar,或者,我没有尝试过,但可能HTTP basic auth有效:</p>
<pre><code>setup(
...
dependency_links = [
"http://user:pass@example.com/private-repository/"
],
)
</code></pre>