[Zope-dev] optimised python

2005-12-17 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm reconsidering the way we RPM package byte-code compiled python, and
although I suspect optimised python is a bit of an anacronysm, I thought
I'd check with the list ;)

If one was to start Zope with python -O, then it would look for (and
generate) .pyo files instead of .pyc's in all the Products right?

Would there be any performance gain by this change?  How much?

Is it worth me doing byte-compiles with -O and starting Zope's
interpreter in this mode?

Alan


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDpQWqCfroLk4EZpkRAlPzAJ90GRzBC7MxpvnkFBkNvcEuwn71LgCfUDB5
PgOhpCiGveqHdNQx/cABRrw=
=8P0/
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] zope-2.9 r40780 make install doesn't finish, files missing from bin

2005-12-17 Thread Jeff Kowalczyk
I didn't receive any feedback on zope-general, but it could just be a
problem with my environment that fails silently. Can anyone confirm that
this isn't pilot error before I file a bug? Thanks.

---

I'm having some trouble with the 'make install' stage of Zope-2.9 svn.
Using python-2.4.2 on Gentoo linux. Zope-2.9.0b1 installed fine, but I
needed the fix for get_transaction() ASAP.

URL: svn://svn.zope.org/repos/main/Zope/branches/2.9
Revision: 40853

# ./configure --prefix=/usr/lib/zope-2.9.0
# make
# make install
(...)
copying lib/python/zope/app/recorder/zope.app.recorder-configure.zcml -> 
/usr/lib/zope-2.9.0/zopeskel/etc/package-includes
copying 
lib/python/zope/app/pluggableauth/zope.app.pluggableauth-configure.zcml -> 
/usr/lib/zope-2.9.0/zopeskel/etc/package-includes
copying lib/python/zope/app/securitypolicy/securitypolicy-meta.zcml -> 
/usr/lib/zope-2.9.0/zopeskel/etc/package-includes
copying lib/python/zope/testbrowser/testbrowser-ftesting.zcml -> 
/usr/lib/zope-2.9.0/zopeskel/etc/package-includes
copying lib/python/zope/formlib/formlib-configure.zcml -> 
/usr/lib/zope-2.9.0/zopeskel/etc/package-includes
copying lib/python/zope/app/securitypolicy/securitypolicy.zcml -> 
/usr/lib/zope-2.9.0/zopeskel/etc
[ -f /usr/lib/zope-2.9.0/bin/python ] || ln -sfn "/usr/bin/python" 
/usr/lib/zope-2.9.0/bin/python

Zope binaries installed successfully.
Now run '/usr/lib/zope-2.9.0/bin/mkzopeinstance.py'

This leaves (most visibly) many missing files in /usr/lib/zope-2.9.0/bin/.
Only the 'python' symlink, and 'zconfig  zconfig_schema2html  zdctl.py
zdrun.py' are installed there. Other files may be missing if they came
afterwards, I don't have information on that.

Is this line indicating a terminating error in make install?

[ -f /usr/lib/zope-2.9.0/bin/python ] || ln -sfn "/usr/bin/python" 
/usr/lib/zope-2.9.0/bin/python


Subsequent runs don't resume installing the remaining files:

# make install
"/usr/bin/python" "/home/jtk/software/svn/Zope/setup.py"  \
   build_ext -i \
   install --home="/usr/lib/zope-2.9.0"
running build_ext
running build_headers
running install
running build
running build_py
running build_scripts
running install_lib
running install_headers
running install_scripts
changing mode of /usr/lib/zope-2.9.0/bin/zconfig to 755
changing mode of /usr/lib/zope-2.9.0/bin/zconfig_schema2html to 755
changing mode of /usr/lib/zope-2.9.0/bin/zdctl.py to 755
changing mode of /usr/lib/zope-2.9.0/bin/zdrun.py to 755
running install_data
[ -f /usr/lib/zope-2.9.0/bin/python ] || ln -sfn "/usr/bin/python" 
/usr/lib/zope-2.9.0/bin/python

Zope binaries installed successfully.
Now run '/usr/lib/zope-2.9.0/bin/mkzopeinstance.py'

Thanks for any insight on the issue. I don't think I want to run Zope
in-place from the working copy.

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: '-C' in REQUEST.form ?

2005-12-17 Thread Philipp von Weitershausen
Florent Guillaume wrote:
> I have a strange thing in Zope 2.8 and Zope 2.9 I never noticed.
> {'-C': ''} is present in REQUEST.form for a GET request without  arguments.
> A simple script "showrequest" with "return repr (context.REQUEST.form)"
> shows it.
> 
> A bit of digging shows this is due to cgi.py which has the code (in 
> parse()):
> if sys.argv[1:]:
> qs = sys.argv[1]
> else:
> qs = ""
> 
> And Zope is actually run with the command line:
> /usr/local/bin/python /opt/zope28/lib/python/Zope2/Startup/run.py -C /
> home/fg/zope28/etc/zope.conf
> which explains the '-C'.
> 
> What should we do? Clear sys.argv[1:] on Zope start?

Do we still need CGI support anyway? AFAIK it got just ripped out...

Philipp
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] '-C' in REQUEST.form ?

2005-12-17 Thread Florent Guillaume

I have a strange thing in Zope 2.8 and Zope 2.9 I never noticed.
{'-C': ''} is present in REQUEST.form for a GET request without  
arguments.
A simple script "showrequest" with "return repr 
(context.REQUEST.form)" shows it.


A bit of digging shows this is due to cgi.py which has the code (in  
parse()):

if sys.argv[1:]:
qs = sys.argv[1]
else:
qs = ""

And Zope is actually run with the command line:
/usr/local/bin/python /opt/zope28/lib/python/Zope2/Startup/run.py -C / 
home/fg/zope28/etc/zope.conf

which explains the '-C'.

What should we do? Clear sys.argv[1:] on Zope start?

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]



___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope tests:

2005-12-17 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Fri Dec 16 12:01:01 2005 UTC to Sat Dec 17 12:01:01 2005 UTC.
There were no messages.

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )