You can trick the installer to using a particular instance of Python with an easy registry hack. I've done this a couple of times to use Python version specific binary installers to my Plone install.
The key is in HKLM\Software\Python\PythonCore\2.x\InstallPath. The value is a REG_SZ of the fully-qualified path of the python root for that version of Python. You can change that value, run the installer(s), then change it back (at least I do, for system integrity). Jason R. Coombs -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 16 September, 2005 09:21 To: zope-dev@zope.org Subject: [Zope-dev] Installing Python Modules Under Zope On Windows I have a hardware constraint where I have to run Zope on Windows. This has worked pretty well for me because Zope 2.7 used my "system" instance of Python 2.3.x. At least, that's my assumption since runzope.bat pointed at the system instance of Python. This setup was nice because it made it very easy to install Python modules (like PIL). When I ran the module installation executable, it would find my system instance of Python in the registry and install the module properly. With Zope 2.8.1, the "default" setting seems to be using the embedded Python interpreter that came with Zope. This is a problem because the embedded versions of Python do not appear in the registry, making it impossible to install a lot of Python modules on Windows. I thought that the following script (http://effbot.org/zone/python-register.htm) would allow me to add embedded versions of Python to my registry. However, you can't add more than one major version of a python release (2.2, 2.3, etc) to the registry. So if my system version of Python is the 2.3.x branch, and I want to use an embedded 2.3.x version of Python with Zope, then I'm out of luck if I want to install many Python modules with it. I can still edit runzope.bat so that it points at the system instance of Python, but I don't know if this is a best practice. Has anyone had any luck installing Python modules in an embedded version of Python on Windows? Is there a better way to work around this than referencing the system version of Python in the runzope.bat file? Thanks in advance for any help! Tom Purl _______________________________________________ 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 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 )