installer does not see current Pythons

Any ideas how to solve this, or needs this for some users a special distribution as zip-file.
Kind regards Rene Liebscher

Rene Liebscher wrote:
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

Rene Liebscher wrote:
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