[python-win32] How to deploy pywin32 when using embedded instance of Python?

Tim Roberts timr at probo.com
Wed Aug 9 14:19:15 EDT 2017


Norman Hadfield wrote:
> We currently use the standard Python and Pywin32 installers but to make our win32 application,) which uses Python to execute dynamically generated expressions including instantiating COM servers and hence the need to pywin32), easier to install and support multiple versions side by side etc we want to switch to using an embedded version installed in a sub-folder of our application.
>
> This will allow simple xcopy deployment plus allow us to package our application using project centennial as a Windows store App.

This is EXACTLY what tools like py2exe and cx_Freeze and pyinstaller
do.  You don't need to reinvent this wheel.


> 1. I now want to trim the pywin32 files down to the minimum so presumably I can just delete the pip*, pkg*, setuptools* folders and also the demo, test sub-folders, help files etc - is that correct?

py2exe (and the rest) do that.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list