On Wed, 29 Oct 2003 11:28:36 +0100, Romain Slootmaekers <[EMAIL PROTECTED]> wrote:
- how difficult is it to get a zope 2.6.2 (or 2.7) working with a python 2.2.x or 2.3. on a windows platform? (I read up on the changes between 2.6 and 2.7 and it does not seem to change python version.)


Hi,

Here's my experience in setting zope 2.6.2 with python 2.3.2 in both windows 2000 and red hat linux 9. Each
step is marked with [x], where x is the platform that this step is applicable, x=W for Windows, x=L for Linux.


1) [WL] extract source :)

2) [W] cd into Zope-2.6.2-src\lib\python\Products\PluginIndexes\TextIndex\Splitter\, fix the following
truncated file names:
ISO_8859_1_Splitter\src\ISO_885 to ISO_8859_1_Splitter.c
UnicodeSplitter\src\UnicodeSpli to UnicodeSplitter.c
UnicodeSplitter\tests\__init__ to __init__.py
UnicodeSplitter\tests\testUnico to testUnicodeSplitter.py


3) [WL] python 2.3.2 will complain that some zope codes contain 'argument named None', e.g. def mymethod(a, b,
None=None). So goto Zope-2.6.2-src\inst\, edit compilezpy.py. Change class NoteErr to:
class NoteErr:
wrote = 0
def write(self, *args):
for arg in args:
if arg.find('SyntaxWarning: argument named None'): return
self.wrote = 1
apply(stderr.write, args)


4) [W] Start compiling zope in windows. Cd into \Zope-2.6.2-src, then run "c:\progra~1\python23\python.exe
wo_pcgi.py". Don't use "c:\program files\...", the space will fail the compilation. Another note: I can't
compile zope using w_pcgi.py because it invokes unix command to compile pcgi. Anyway, I don't need pcgi, so
wo_pcgi.py is fine for me.


5) [L] Start compiling zope in linux. Cd into Zope-2.6.2-src, then run "python2.3 wo_pcgi.py" or "python2.3
w_pcgi.py"


6) [WL] Make a zope instance. Cd into Zope-2.6.2-src\inst, run make_instance.py and follow on-screen
instruction. You need to hack the start script in the instance directory to make it run in windows.



Have fun! Comments are most welcome.



Regards, Zhi Min


_______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] 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 )

Reply via email to