Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing a package from private pypi in zc.buildout

I'm trying to install a python package from the private reportlab pypi server using zc.buildout.

When I install using the instructions provided on their own site, then it installs without problem. http://www.reportlab.com/reportlabplus/installation/

If however I install using zc.buildout, I keep getting Couldn't find distributions for 'rlextra'. I added their pypi repo to find-links, so I'm not sure what I'm missing.

My buildout config:

[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.

Edit: I should point out that I did in the end do a manual download of the package, and using it in my buildout as a develop package. Even though this solves the immediate issue, I would still like to know why my original setup is not working.

like image 266
Andre Avatar asked Jan 01 '26 06:01

Andre


1 Answers

You are passing in the PyPI main link for the find-links URL, but find-links only works with the simple index style pages (which exist per package on PyPI).

For example, the beautifulsoup4 package has a simple index page at https://pypi.python.org/simple/beautifulsoup4/.

The ReportLab server also has simple pages; add the one for this package to your buildout:

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

IIRC you can also add the top-level https://[user]:[pass]@www.reportlab.com/pypi/simple URL as a find-links, but being more specific saves on the URL round-trips.

like image 176
Martijn Pieters Avatar answered Jan 06 '26 11:01

Martijn Pieters



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!