On 29/12/2016 15:52, davecortesi wrote:
>
>      For several years now I have been using a Windows 7 64 bit machine to
>     build python based code that runs on Windows 32 bit machines
>     elsewhere -
>     All I do is to use the 32 bit version of python to do it.
>
>
> It's good that works but you really should not count on it. The manual
> is specific about not being a "cross-compiler" and says if you want to
> bundle for a specific OS you need to run on that OS. My point being, if
> it ever breaks, you won't get a fix.

Building 32 bit Windows Python Applications on a 64 bit platform is not 
cross compiling when you are running 32 bit python on that platform - 32 
bit Python under Windows runs with exactly the same instruction set and 
memory model regardless of running on Windows 64 bit or 32 bit.

pyInstaller, (or py2exe or cxFreeze), embed the local copy of python, 
and the required libraries, into the created package and the 32 bit 
windows python installation is the same regardless of being installed on 
a 32 bit or 64 bit machine.  What you cannot do is deploy applications 
built with 64 bit Windows python, (and it's libraries), on 32 bit 
Windows machines. Needless say 32 bit deployments can also run on 64 bit 
machines but it is a very good idea to run your tests using the exact 
same version(s) of python that you are going to deploy with.

If you are even slightly worried you can build & test in a virtual 
machine under vagrant or virtualbox, test VMs can be found at 
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ you just 
have to install python and the libraries that you need before your test 
& build.

-- 
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect 
those of my employer.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to