RE: [Zope-dev] python 2.0, windows and zope
Ive successfully installed the latest version of zope on windows and have it running my website. http://www.brooklynmedialabs.com . Its actually easier than running it on linux! -josh Has anyone got python 2.0 working with Zope on windows? Just curious if anyone has any pointers before I start done this (potentially) painful path... -- Andy McKay, Developer. ActiveState. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] python 2.0, windows and zope
using python 2.0 and not the default python installation? -- Andy McKay, Developer. ActiveState. - Original Message - From: "Josh Zeidner" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 13, 2000 9:18 AM Subject: RE: [Zope-dev] python 2.0, windows and zope Ive successfully installed the latest version of zope on windows and have it running my website. http://www.brooklynmedialabs.com . Its actually easier than running it on linux! -josh Has anyone got python 2.0 working with Zope on windows? Just curious if anyone has any pointers before I start done this (potentially) painful path... -- Andy McKay, Developer. ActiveState. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] python 2.0, windows and zope
Waffling on to my own posts... but it would seem I have to build Zope from source to get it to use another version of python since the use of python15.dll is entrenched in Zope... All the install scripts seem to be based on unix. Can DC give me a hand here on pointers to how they build it for Windows? -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 13, 2000 9:21 AM Subject: Re: [Zope-dev] python 2.0, windows and zope using python 2.0 and not the default python installation? -- Andy McKay, Developer. ActiveState. - Original Message - From: "Josh Zeidner" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 13, 2000 9:18 AM Subject: RE: [Zope-dev] python 2.0, windows and zope Ive successfully installed the latest version of zope on windows and have it running my website. http://www.brooklynmedialabs.com . Its actually easier than running it on linux! -josh Has anyone got python 2.0 working with Zope on windows? Just curious if anyone has any pointers before I start done this (potentially) painful path... -- Andy McKay, Developer. ActiveState. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] python 2.0, windows and zope
Waffling on to my own posts... but it would seem I have to build Zope from source to get it to use another version of python since the use of python15.dll is entrenched in Zope... All the install scripts seem to be based on unix. Can DC give me a hand here on pointers to how they build it for Windows? Hi Andy - We have a little python script that creates NMAKE compatible makefiles out of the Setup files. I've attached it + the .bat file we use to run it. Hope this helps! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com '''Build t Python extension using Visual C++ 40 This script generates and runs a series of .mak and .def files for extensions defined in a Setup file. Note that you must have set up your environment to run VC command-line ustilities. This can be done by running the vcvar32.bat file in the VC++ bin directory. Usage: python ext.py [options] Options: -r Run nmake to build release version -d Run nmake to build debug version -c If used with -r or -d, runs nmake on clean target. -p Specify location of Python source tree. Default is ..\.. (assuming you are in Extensions/some_name) The script reads a file named "Setup" in the current directory. The Setup file has lines that describe the contents of an extension. Here\'s an example: ExtensionClass ExtensionClass.c Acquisition Acquisition.c Note that I\'ve intented for readability. The Setup file shouldn\'t be indented. Basically, the first token on the line is the module name, and the second token on the line is the sorce file. Additional source files and include directories may be included as well, as in: pyexpat pyexpat.c -DXML_NS -Iexpat/xmlparse -Iexpat/xmltok expat/xmlparse/xmlparse.c expat/xmlparse/hashtable.c expat/xmltok/xmlrole.c expat/xmltok/xmltok.c ''' # ' import sys, getopt, os, string, regex def die(m): print m print print __doc__ sys.exit(1) def setup(): poptlist,pargs=getopt.getopt(sys.argv[1:],'p:drcI:o:h') if opt(poptlist,'h'): print __doc__ if poptlist==[('-h','')]: sys.exit(0) pargs and die('Unrecognized arguments: %s', string.join(args)) ext_regex = regex.compile('\([a-z][a-z0-9_]*\)[ \t]' '\([.a-z][./a-z0-9_]*[.]c\)[ \t\n]', regex.casefold) for line in open('Setup').readlines(): if ext_regex.match(line) = 0: sargs=string.split(line) module=sargs[0] src=sargs[1] if src[:2]=='./': continue soptlist, sargs = getopt.getopt(sargs[2:],'I:D:') filter(lambda a: a[:1]=='-' or string.find(a,'.') 0, sargs) and die('Invalid arguments in Setup file: %s' % string.join(sargs)) sargs=map(lambda a: string.replace(a, '/','\\'), sargs) simple(module,poptlist+soptlist, sargs) main=setup def filebase(o, splitext=os.path.splitext, split=os.path.split): return splitext(split(o)[1])[0] def simple(module,optlist,others): tdef,tmak=templates() pyhome=opt(optlist,'p') pyhome=pyhome and pyhome[0] or '..\\..' cfg=opt(optlist,'d') and 'Debug' or 'Release' parms={'module': module, 'pyhome':pyhome, 'cfg': cfg} parms['includes']=string.join( map(lambda i: '/I "%s"' % i, opt(optlist,'I')) + map(lambda i: '/D "%s"' % i, opt(optlist,'D')) , ' ') parms['other_clean_release']=string.join( map(lambda o: '\n\t-@erase ".\\Release\\%s.obj"' % filebase(o), others),'') parms['other_clean_debug']=string.join( map(lambda o: '\n\t-@erase ".\\Debug\\%s.obj"' % filebase(o), others),'') parms['other_rule']=string.join( map(lambda o: '"$(INTDIR)\%s.obj" : .\%s $(DEP_CPP_MOD) "$(INTDIR)"\n' '\t$(CPP) $(CPP_PROJ) .\%s ' % (filebase(o), o, o), others),'\n') parms['other_link']=string.join( map(lambda o: '\n\t"$(INTDIR)\%s.obj" \\' % filebase(o), others),'') open(module+'.def','w').write(tdef % parms) open(module+'.mak','w').write(tmak % parms) cfg_=' CFG="%s - Win32 %s"' % (module,cfg) os.system('nmake /nologo /f %s.mak%s' % (module,cfg_)) os.system('copy %s\%s.dll %s.pyd' % (cfg,module,module)) if opt(optlist,'c'): os.system("nmake /f %s.mak%s CLEAN" % (module,cfg_)) def opt(optlist,name): l=filter(lambda t, name='-'+name: t[0]==name, optlist) return map(lambda t: t[1], l) def templates(): tdef = '''EXPORTS init%(module)s ''' tmak = '''# Microsoft Developer Studio Generated NMAKE File, Format Version 4.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Dynamic-Link Library"
Re: [Zope-dev] python 2.0, windows and zope
I think thats just the fella I need! Thanks... Will let you know progress -- Andy McKay, Developer. ActiveState. - Original Message - From: "Brian Lloyd" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 13, 2000 11:14 AM Subject: RE: [Zope-dev] python 2.0, windows and zope Waffling on to my own posts... but it would seem I have to build Zope from source to get it to use another version of python since the use of python15.dll is entrenched in Zope... All the install scripts seem to be based on unix. Can DC give me a hand here on pointers to how they build it for Windows? Hi Andy - We have a little python script that creates NMAKE compatible makefiles out of the Setup files. I've attached it + the .bat file we use to run it. Hope this helps! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )