Re: [Repoze-dev] Problem with BFG on jython

2010-07-02 Thread Chris McDonough
On Fri, 2010-07-02 at 10:55 -0400, Tres Seaver wrote:
> -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")
> ]),
> ],
> )
> - --- %< --

Thanks.  That works (I tested it under Jython).

OTOH, a platform/situation blacklist is not as convenient as the prior
method, which would just continue on if it couldn't compile due a
failure during the build step for any reason at all (e.g. missing C
compiler on Mac OS X).  This particular C extension is totally bogus and
very down-low, so it's a somewhat important distinction.

- C


___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with BFG on jython

2010-07-02 Thread Tres Seaver
-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


[Repoze-dev] [issue153] config.scan() and test dependencies

2010-07-02 Thread Chris McDonough

Chris McDonough  added the comment:

I think having some skip parameter to scan (maybe a regex or something) is 
reasonable, but FWIW I never see this is because my package's tests typically 
don't import anything except "unittest" at module scope.  All the imports are 
done 
in the test methods themselves.  See 
http://palladion.com/home/tseaver/obzervationz/2008/unit_testing_notes-20080724 
for a rationale.

--
status: unread -> chatting

__
Repoze Bugs 

__
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with BFG on jython

2010-07-02 Thread Eduardo Diaz
Yeah.. that seems to be the problem :) It works with 3.5.0

On Thu, Jul 1, 2010 at 11:34 PM, 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. ;-)
>
> - C
>
>
>
>
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] [issue153] config.scan() and test dependencies

2010-07-02 Thread Chris Withers
Chris Witehrs wrote:
> New submission from Chris Witehrs :

Wow, I cannot even spell my own name.
Shoot me.

Chris

___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] [issue153] config.scan() and test dependencies

2010-07-02 Thread Chris Witehrs

New submission from Chris Witehrs :

It should be possible to get config.scan() to exclude my test folders.

My tests have package dependencies not normally needed, so the scan 
fails with ImportErrors for those packages that are *only* test 
dependencies...

cheers,

Chris

--
messages: 420
nosy: chrisw
priority: feature
status: unread
title: config.scan() and test dependencies

__
Repoze Bugs 

__
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev