installer does not see current Pythons

Any ideas how to solve this, or needs this for some users a special distribution as zip-file.
Support Request #110549, was updated on 2000-Dec-22 17:22 You can respond by visiting: http://sourceforge.net/support/?func=detailsupport&support_id=110549&...
Category: None Status: Open Priority: 5 Summary: installer does not see current Pythons
By: fredy Date: 2000-Dec-22 17:22
Message: Logged In: YES user_id=20580 Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
I downloaded PyOpenGL-1.5.6b1.win32-py1.5.2.exe and executed it on my Windows NT 4.0 machine. When the installer displays the "select python installation to use" screen it fails to list anything and I am blocked, even though I have both Python 1.5.2 and 1.6 installed, along with whatever Python comes with Zope 2.2. What can I do now to install PyOpenGL?
Kind regards
Rene Liebscher

Rene Liebscher wrote:
Any ideas how to solve this, or needs this for some users a special distribution as zip-file.
Support Request #110549, was updated on 2000-Dec-22 17:22 You can respond by visiting: http://sourceforge.net/support/?func=detailsupport&support_id=110549&...
Category: None Status: Open Priority: 5 Summary: installer does not see current Pythons
By: fredy Date: 2000-Dec-22 17:22
Message: Logged In: YES user_id=20580 Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
I downloaded PyOpenGL-1.5.6b1.win32-py1.5.2.exe and executed it on my Windows NT 4.0 machine. When the installer displays the "select python installation to use" screen it fails to list anything and I am blocked, even though I have both Python 1.5.2 and 1.6 installed, along with whatever Python comes with Zope 2.2. What can I do now to install PyOpenGL?
Meanwhile I found out what is wrong. The Windows installers relies on two registry entries, but if Python is not correctly installed in the registry it is not found.
To add these registry entries write the following code in a file (reg.py): ########################################################## # these entries are necessary for the distutils-Windows-installer reg_data = """REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Python]
[HKEY_LOCAL_MACHINE\Software\Python\PythonCore]
[HKEY_LOCAL_MACHINE\Software\Python\PythonCore$VERSION]
[HKEY_LOCAL_MACHINE\Software\Python\PythonCore$VERSION\InstallPath] @="$PYTHON" """
import sys,string
reg_data = string.replace(reg_data,"$VERSION",sys.version[0:3]) reg_data = string.replace(reg_data,"$PYTHON",string.replace(sys.prefix,"\","\\"))
print reg_data ##########################################################
Then call it with 'python reg.py >python.reg' and double click on python.reg. This will install the registry entries necessary for the Windows installer. (You can also import this file with regedit or type 'start python.reg' at the command line.)
!!! It doesn't install all registry entries which are usually made by Python, but it should be enough to get distutils windows installer to work.
Kind regards
Rene Liebscher
participants (1)
-
Rene Liebscher