Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install z3c.recipe.fakezope2eggs

How to install z3c.recipe.fakezope2eggs

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install z3c.recipe.fakezope2eggs
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.5 Available View build log
Windows (64-bit)
0.5 Available View build log
Mac OS X (10.5+)
0.5 Available View build log
Linux (32-bit)
0.5 Available View build log
Linux (64-bit)
0.5 Available View build log
 
License
ZPL 2.1
Dependencies
Lastest release
version 0.5 on Jan 5th, 2011

Zope 2 isn't eggified yet, Zope 3 does. That can become a problem if you want to install some egg with depedencies related to Zope 3 eggs (such as zope.interface, zope.component, ...)

This buildout recipe will simply add some fake egg link to zope libraries (installed inside zope/lib/python/zope/...) so that setuptools can see that the dependencies are already satisfied and it won't fetch them anymore.

Detailed Documentation

Here is the most basic example:

>>> write('buildout.cfg',

System Message: ERROR/3 (<string>, line 21)

Inconsistent literal block quoting.

... """ ... [buildout] ... parts = ... zope2 ... fakezope2eggs ... ... find-links = ... http://dist.plone.org/ ... ... [zope2] ... recipe = plone.recipe.zope2install ... url = http://www.zope.org/Products/Zope/2.9.7/Zope-2.9.7-final.tgz ... ... [fakezope2eggs] ... recipe = z3c.recipe.fakezope2eggs ... """)

Now if we run the buildout:

>>> print system(buildout)

System Message: ERROR/3 (<string>, line 41)

Inconsistent literal block quoting.

Installing zope2. running build_ext creating zope.proxy copying zope/proxy/proxy.h -> zope.proxy building 'AccessControl.cAccessControl' extension creating build creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/AccessControl ...

Now if we list all the developped egg we have:

>>> ls(sample_buildout, 'develop-eggs')
-  plone.recipe.zope2install.egg-link
-  z3c.recipe.fakezope2eggs.egg-link
-  zope.app.adapter.egg-info
-  zope.app.annotation.egg-info
-  zope.app.apidoc.egg-info
-  zope.app.applicationcontrol.egg-info
-  zope.app.appsetup.egg-info
-  zope.app.authentication.egg-info
-  zope.app.basicskin.egg-info
-  zope.app.broken.egg-info
-  zope.app.cache.egg-info
...

Let's have a look at the content of one of them:

>>> cat(sample_buildout, 'develop-eggs', 'zope.app.adapter.egg-info')

System Message: ERROR/3 (<string>, line 70)

Inconsistent literal block quoting.

Metadata-Version: 1.0 Name: zope.app.adapter Version: 0.0

You might also want to add other fake eggs to your buildout, to do so use the additional-fake-eggs option, for example:

>>> write('buildout.cfg',

System Message: ERROR/3 (<string>, line 78)

Inconsistent literal block quoting.

... """ ... [buildout] ... parts = ... zope2 ... fakezope2eggs ... ... find-links = ... http://dist.plone.org/ ... ... [zope2] ... recipe = plone.recipe.zope2install ... url = http://www.zope.org/Products/Zope/2.9.7/Zope-2.9.7-final.tgz ... ... [fakezope2eggs] ... recipe = z3c.recipe.fakezope2eggs ... additional-fake-eggs = ZODB3 ... """)

>>> print system(buildout)
Uninstalling fakezope2eggs.
Updating zope2.
Installing fakezope2eggs.
<BLANKLINE>

Let's check if the additionnal fake egg exists:

>>> cat(sample_buildout, 'develop-eggs', 'ZODB3.egg-info')
Metadata-Version: 1.0
Name: ZODB3
Version: 0.0
CHANGES
Version 0.5 (2008-07-21)
  • rename affinitic.recipe.fakezope2eggs to z3c.recipe.fakezope2eggs and

System Message: WARNING/2 (<string>, line 119)

Bullet list ends without a blank line; unexpected unindent.

moving it to zope.org repos

  • Feature: Apply patch from Daniel Nouri which add an optional

System Message: WARNING/2 (<string>, line 122)

Bullet list ends without a blank line; unexpected unindent.

parameter to skip fake eggs creation

Version 0.4 (2008-03-25)
  • Feature: Apply patch from Bertrand Mathieu which add an optional

System Message: WARNING/2 (<string>, line 128)

Bullet list ends without a blank line; unexpected unindent.

parameter to be able to define another zope2 part name (might not be always "zope2" in every buildout)

Version 0.3 (2008-02-19)
  • Feature: Add additional-fake-eggs option which allow you to define

System Message: WARNING/2 (<string>, line 136)

Bullet list ends without a blank line; unexpected unindent.

other fake eggs which are not in zope.* or in zope.app.*

Version 0.2 (2008-01-28)
  • Bug: Fix zope.app.* bug
Version 0.1 (2007-12-10)
  • Initial Release

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.