Offline mode unable to install eggs from dist/site-plone

Bug #256458 reported by Steve McMahon
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Buildout
Confirmed
Undecided
Sidnei da Silva

Bug Description

When run in offline mode, buildout will issue a cryptic message and die if a dependency is unavailable -- even if there is a matching egg in download/dist or python's site-packages. (The error message is the subject of #229678.)

Ideally, buildout in offline mode should go ahead and install an egg that's available from one one of those locations. I'd particularly like to be able to do that so that I can distribute a buildout with eggs in download/dist for the Plone installers (so that the pyc files get compiled with the right locations).

Patch against zc.buildout 1.1.1:

Macintosh-2:buildout steve$ diff buildout.py.1.1.1 buildout.py
789a790
> dest = self['buildout']['eggs-directory']
791d791
< dest = None
794d793
< dest = self['buildout']['eggs-directory']
880a880
> dest = buildout_options['eggs-directory']
882d881
< dest = None
887d885
< dest = buildout_options['eggs-directory']

Against zc.recipe.egg 1.1.0:

Macintosh-2:egg steve$ diff egg.py.1.1.0 egg.py
73,75c73,76
< ws = zc.buildout.easy_install.working_set(
< distributions, options['executable'],
< [options['develop-eggs-directory'], options['eggs-directory']]
---
> ws = zc.buildout.easy_install.install(
> distributions, options['eggs-directory'],
> executable = options['executable'],
> path=[options['develop-eggs-directory'], options['eggs-directory']],

Thanks!

Revision history for this message
Parijat Mishra (parijat-mishra) wrote :

I face the same problem: when trying to install MySQL-python driver.

In my setup, MySQL-python tarball is placed in download-cache. Buildbot, in offline mode, finds the tarball, and builds an egg from it successfully. It then fails to install it, because the dest argument to easy_install.install() is is None in various places.

Sidnei da Silva (sidnei)
Changed in zc.buildout:
assignee: nobody → Sidnei da Silva (sidnei)
status: New → Confirmed
Revision history for this message
Sidnei da Silva (sidnei) wrote :

Here's one patch that fixes a similar issue. I'm adding it here so it doesn't get lost. I still plan to fix the original issue in a similar way.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.