2014-05-25 50 views
2

我想從私人reportlab pypi服務器使用zc.buildout安裝python包。從私人pypi安裝包在zc.buildout

當我使用他們自己的網站上提供的說明安裝時,它安裝沒有問題。 http://www.reportlab.com/reportlabplus/installation/

如果我使用zc.buildout安裝,我一直在收到Couldn't find distributions for 'rlextra'。我將他們的pypi回購添加到find-links,所以我不確定我錯過了什麼。

我的擴建配置:

[buildout] 
versions = versions 
include-site-packages = false 
extensions = mr.developer 
unzip = true 

find-links = https://[user]:[pass]@www.reportlab.com/pypi 

parts = 
    python 
    django 
    compass-config 

auto-checkout = * 

eggs = 
    ... 
    rlextra 
    ... 

... etc. 

編輯:我要指出,我沒有做到底包的手動下載,並在我的擴建使用它作爲一個開發包。即使這解決了眼前的問題,但我仍然想知道爲什麼我的原始設置不起作用。

回答

1

您正在通過find-links URL的PyPI主鏈接,但find-links僅適用於簡單索引樣式頁面(PyPI上每個包存在)。

例如,beautifulsoup4包在https://pypi.python.org/simple/beautifulsoup4/有一個簡單的索引頁。

ReportLab服務器也有簡單的頁面;添加一個用於這個包到您的buildout:

find-links = https://[user]:[pass]@www.reportlab.com/pypi/simple/rlextra/ 

IIRC你還可以添加頂級https://[user]:[pass]@www.reportlab.com/pypi/simple網址爲找鏈接,但是更加具體的網址往返節省。

+0

啊謝謝你!這工作和包正確定位和構建,然後嘗試安裝它。不幸的是,我現在得到了一個「錯誤的Marchsal數據」錯誤,但這是一個單獨的問題,所以我將其標記爲正確的答案。 – Andre

相關問題