Georgy Berdyshev | 9 Jun 05:05

Weekly status report

Hello everyone!

I have been working in the past on several Zope components and made
some further steps to get closer to the point for running core Zope
components on Jython.

This week I have mainly spend time on getting zope.testing to work
correctly, to be able to use it to test other Zope components.
A part of the time was spent on getting several Zope components working
by modifying code and also getting a working zc.buildout for zope.testing,
which is mostly finished now.

In addition I was working on getting bootstrap.py to work on Zope, which
needed modifications to the code (process execution), but also an
implementation
for the CPython flag "-m" in Java for Jython, which is mostly done and working.
The CPython "-m" flag which is now available for Jython searches for a
given module
name "foo" in the sys.path and runs the corresponding "foo.py" file as a script.

I will upload the patch during the next week, as the code still needs
some additional
testing and maybe some clean ups.

The work was done using Jython trunk and Zope trunk with the following
results by now:

-zc.buildout:
    -builds
    -installs
(Continue reading)

Philip Jenvey | 9 Jun 06:53
Gravatar

Re: Weekly status report


On Jun 8, 2008, at 8:09 PM, Georgy Berdyshev wrote:
> In addition I was working on getting bootstrap.py to work on Zope,  
> which
> needed modifications to the code (process execution), but also an
> implementation
> for the CPython flag "-m" in Java for Jython, which is mostly done  
> and working.
> The CPython "-m" flag which is now available for Jython searches for a
> given module
> name "foo" in the sys.path and runs the corresponding "foo.py" file  
> as a script.

Are you using CPython 2.5's runpy.py? I would think it would simplify  
our -m implementation quite a bit, compared to what CPython 2.4 was  
doing.

--
Philip Jenvey

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Frank Wierzbicki | 9 Jun 15:55

Re: Weekly status report

On Mon, Jun 9, 2008 at 12:53 AM, Philip Jenvey <pjenvey <at> underboss.org> wrote:
>
> On Jun 8, 2008, at 8:09 PM, Georgy Berdyshev wrote:
>>
>> In addition I was working on getting bootstrap.py to work on Zope, which
>> needed modifications to the code (process execution), but also an
>> implementation
>> for the CPython flag "-m" in Java for Jython, which is mostly done and
>> working.
>> The CPython "-m" flag which is now available for Jython searches for a
>> given module
>> name "foo" in the sys.path and runs the corresponding "foo.py" file as a
>> script.
>
> Are you using CPython 2.5's runpy.py? I would think it would simplify our -m
> implementation quite a bit, compared to what CPython 2.4 was doing.
I just became aware of runpy.py this morning looking through "what's
new in Python 2.5?" -- here are some pointers:

http://docs.python.org/whatsnew/pep-338.html

http://www.python.org/dev/peps/pep-0338/

Too bad I didn't know about this when you asked.... probably when you
send email questions it would be a good idea to cc jyhton-dev just in
case someone else knows something like this.

Of course this may be beyond the scope of you Zope work,  but it does
look like it is "the right way" to do -m.

(Continue reading)


Gmane