zope.interface setup.py fails in Jython

Bug #204027 reported by Nicholas Riley
2
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Undecided
Unassigned
zope.interface
Won't Fix
Undecided
Unassigned

Bug Description

Because Jython doesn't support C extension modules, it can't compile _zope_interface_coptimizations; however, with a small patch (bug 204022) Jython trunk supports the pure-Python implementation of zope.interface.

The attached patch allows zope.interface to build even if the C compiler is unavailable. (It passes through any existing error, along with an additional warning.)

Revision history for this message
Nicholas Riley (njriley) wrote :
Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Tres Seaver (tseaver)
tags: added: bugday20100424
Revision history for this message
Tres Seaver (tseaver) wrote :

AFAICT, the setup.py for zope.interface already has the optional
compilation goodness needed. Here is what I tried to test:

- I doownloaded jython_installer-2.5.1.jar .

- I installed it using my system Java (sun-java5-bin) to '/opt/jython-2.5.1'.

- I downloaded ez_setup.py and tried running 'jython ez_setup.py':
  this blew up after downloading the setuptools tarball with and
  ImportError ("no module named setuptools").

- I downloaded the setuptools-0.6c11.tar.gz tarball and unpacked it in '/tmp'.

- I tried running 'jython setup.py install', which made it most of the way
  through the build but then blew up while making
  'dist/setuptools-0.6c11-py2.5.egg': 'java.lang.InteralError' inside the
  java.util.zipe.Deflater module.

Withot being able to install setuptools, I don't think I can go any
further to test this. Can you test whehter the current zope.interface release is
installable for you?

Changed in zope.interface:
status: New → Incomplete
Revision history for this message
Justin Alan Ryan (justizin) wrote :

Is it possible that distribute works in Jython? That Jython fails to compile a C extension does certainly imply that distutils at least but presumably setuptools or compatible such as distribute is used, given it's zope.interface, is being used. In the past I've had trouble with zipped eggs on alternate Py implementations, but the presence of Jython conditionals in common packages suggest that has been dealt with somehow.

I have also noticed code in this and related setup.py which allow for Jython. repoze.bfg is explicit about it, so perhaps that is a good test case which clearly would need zope.interface at least.

Revision history for this message
Nicholas Riley (njriley) wrote :

Yes, distribute should work in Jython. setuptools should too; not sure why it was failing.

Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in zope.interface:
status: Incomplete → Won't Fix
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.