Fwd: RE: [python-win32] win32all and non-standard Python distribution

Robert Olson olson at mcs.anl.gov
Mon May 19 07:34:37 CDT 2003


this is a mechanism that might be useful for the windows ag installs .. 
package up the whole python dir and install what we want.

>From: "Pavlos Christoforou" <pavlos at gaaros.com>
>To: "'Itamar S.-T.'" <itamarst at yahoo.com>, <python-win32 at python.org>
>Subject: RE: [python-win32] win32all and non-standard Python distribution
>Date: Fri, 16 May 2003 19:02:34 +0100
>X-Mailer: Microsoft Outlook, Build 10.0.3416
>Importance: Normal
>X-Spam-Status: No, hits=-4.7 required=5.0 tests=BODY_PYTHON_ZOPE, IN_REP_TO,
>         SPAM_PHRASE_03_05, SUBJ_PYTHON_ZOPE
>X-Spam-Level:
>X-Mailman-Approved-At: Fri, 16 May 2003 14:32:06 -0400
>Cc:
>X-BeenThere: python-win32 at python.org
>X-Mailman-Version: 2.1.2
>Reply-To: pavlos at gaaros.com
>List-Id: Python on win32  <python-win32.python.org>
>List-Unsubscribe: <http://mail.python.org/mailman/listinfo/python-win32>,
>         <mailto:python-win32-request at python.org?subject=unsubscribe>
>List-Archive: <http://mail.python.org/pipermail/python-win32>
>List-Post: <mailto:python-win32 at python.org>
>List-Help: <mailto:python-win32-request at python.org?subject=help>
>List-Subscribe: <http://mail.python.org/mailman/listinfo/python-win32>,
>         <mailto:python-win32-request at python.org?subject=subscribe>
>Sender: python-win32-bounces at python.org
>
>This is the procedure we follow to keep the python distro we ship with
>our application completely independent from any installed python on the
>target machine.
>
>1. make a copy of the python22.dll and open it as a resource in MSVC.
>One of the resource strings is "2.2" which defines the subpath in the
>registry where this specific python dll will look for various settings.
>Modify this string to some other value, say "2.2_IST".
>
>2. Lets suppose that your applications root directory is {app} and that
>you have unzipped the python distro in {app}\Python22\. The following
>registry entries will do the trick.
>
>Root: HKLM; Subkey: "SOFTWARE\Python\PythonCore\2.2_IST\PythonPath";
>ValueType: string; ValueName: ""; ValueData:
>"{app}\ExternalModules\Python22\Lib;{app}\ExternalModules\Python22\Lib\s
>ite-packages;{app}\ExternalModules\Python22\DLLs"
>
>Root: HKLM; Subkey:
>"SOFTWARE\Python\PythonCore\2.2_IST\PythonPath\win32com"; ValueType:
>string; ValueName: ""; ValueData:
>"{app}\ExternalModules\Python22\Lib\site-packages\win32com"
>
>
>Root: HKLM; Subkey:
>"SOFTWARE\Python\PythonCore\2.2_IST\PythonPath\win32"; ValueType:
>string; ValueName: ""; ValueData:
>"{app}\ExternalModules\Python22\Lib\site-packages\win32;{app}\ExternalMo
>dules\Python22\Lib\site-packages\win32\lib"
>
>Root: HKLM; Subkey: "SOFTWARE\Python\PythonCore\2.2_IST\InstallPath";
>ValueType: string; ValueName: ""; ValueData: "{app}\Python22" ; Flags:
>uninsdeletekey
>
>
>Pavlos Christoforou
> > Anyone solved this issue before? Obvious solutions
> > would be sys.path fixups in all applications I run,
> > messing with directory structure before ZIPing, adding
> > some sort of site.py post-install, and getting Mark
> > Hammond to change how win32all installs itself (can we
> > get .h and .lib files installed too?) :)
> >
>
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32 at python.org
>http://mail.python.org/mailman/listinfo/python-win32




More information about the ag-dev mailing list