-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris McDonough wrote:
> On Thu, 2010-07-01 at 23:02 -0500, Eduardo Diaz wrote:
>> I'm trying to use the latest version of repoze.bfg.jinja2 (0.6) on
>> jython, when trying to build it I get the following error:
>>
>>
>> building 'zope.i18nmessageid._zope_i18nmessageid_message' extension
>>
>>
>> error: Compiling extensions is not supported on Jython
> 
> I think someone may have  "fixed" zope.i1n8nmessageid recently, causing
> this problem.  Can you try to install the older 3.5.0 version of
> zope.i18nmessageid before installing repoze.bfg.jinja2 (e.g.
> easy_install zope.i18nmessageid==3.5.0) and see if installing r.b.jinja2
> works then.  If so, I'll need to figure out how to re-unfix
> zope.i18nmessageid. ;-)

The 'codeoptimizations' feature constructor can take an 'available'
argument which could be false, e.g.:

- --------------------------- %< --------------------------
CANNOT_COMPILE = [
    'java',
]

codeoptimization = Feature("Optional code optimizations",
    standard=True,
    available=os.name not in CANNOT_COMIPLE,
    ext_modules=[
        Extension("zope.i18nmessageid._zope_i18nmessageid_message", [
            os.path.join('src', 'zope', 'i18nmessageid',
                "_zope_i18nmessageid_message.c")
        ]),
    ],
)
- --------------------------- %< --------------------------


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkwt/coACgkQ+gerLs4ltQ6qlACcCVlLYbCIKEf4DCI3AIYQ1Vhj
upYAni5PqGy6ToCONvkDVqfyw5gQRZaW
=30CC
-----END PGP SIGNATURE-----
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to