From: Jimmy R. <ji...@re...> - 2005-11-17 13:39:33
|
Pander wrote: > Does anyone have a instructions on how to use py2exe on Linux? I assume you want to run py2exe under Linux. Do you want the resulting executables to run on Linux or on Windows? If you want Linux executables then py2exe won't help. You might try cx_Freeze for that (http://www.cxtools.net/default.aspx?nav=3Dcxfrlb). If you want Windows executables... you would need to run py2exe under the Windows version of Python (so that it has access to the proper DLLs and such that are needed to run Python apps on Windows). Using VMWare to host Windows is an obvious option, but I don't know if you'd consider that to be running under Linux. Using Wine to host the Windows version of Python is another possibility, but I have no idea how well it would work. Jimmy |
From: Jimmy R. <ji...@re...> - 2005-11-17 15:08:26
|
Pander wrote: > To be precise, use py2exe to build Windows executables on a Linux > machine. preferably without the use of VMWare, Wine, etc. Without some Windows emulation layer I'm afraid you'd be out of luck. py2exe actually takes pieces of the interpreter environment that it is running under and puts them together to build the executable solution (e.g., the interpreter itself and a subset of the library files). It only knows how to do this for the Windows version of the interpreter and in order for the result to run on Windows the pieces would need to be from the Windows version of the interpreter. Thus you need some emulation layer (like VMWare or Wine) in order for Linux to run the Windows version of the interpreter. I know cx_Freeze can produce Linux programs on Linux and Windows programs on Windows, I don't know if it can be hosted on one platform and target the other. If the cx_Freeze download is not several megabytes (large enough to contain the Python interpreter binaries for all supported platforms) then I doubt it can do cross targeting either. Jimmy |
From: Bob I. <bo...@re...> - 2005-11-17 16:21:00
|
On Nov 17, 2005, at 7:08 AM, Jimmy Retzlaff wrote: > Pander wrote: >> To be precise, use py2exe to build Windows executables on a Linux >> machine. preferably without the use of VMWare, Wine, etc. > > Without some Windows emulation layer I'm afraid you'd be out of luck. > py2exe actually takes pieces of the interpreter environment that it is > running under and puts them together to build the executable solution > (e.g., the interpreter itself and a subset of the library files). It > only knows how to do this for the Windows version of the > interpreter and > in order for the result to run on Windows the pieces would need to be > from the Windows version of the interpreter. Thus you need some > emulation layer (like VMWare or Wine) in order for Linux to run the > Windows version of the interpreter. That's not actually the important part. What matters is that py2exe requires an extension that links to win32 stuff in order to actually create the exe and do the DLL dependency resolution. py2exe does not contain pure python code that knows the PE format. > I know cx_Freeze can produce Linux programs on Linux and Windows > programs on Windows, I don't know if it can be hosted on one platform > and target the other. If the cx_Freeze download is not several > megabytes > (large enough to contain the Python interpreter binaries for all > supported platforms) then I doubt it can do cross targeting either. IIRC, it can cross-compile, you simply need a win32 copy of the interpreter and such. Not to hard to come by -- it doesn't actually need to run the code, it just needs to be available. -bob |
From: Pander <pa...@us...> - 2005-11-17 13:52:09
|
Hi all, To be precise, use py2exe to build Windows executables on a Linux machine. preferably without the use of VMWare, Wine, etc. Regards, Pander On Thu, 2005-11-17 at 05:39 -0800, Jimmy Retzlaff wrote: > Pander wrote: > > Does anyone have a instructions on how to use py2exe on Linux? > > I assume you want to run py2exe under Linux. Do you want the resulting > executables to run on Linux or on Windows? > > If you want Linux executables then py2exe won't help. You might try > cx_Freeze for that (http://www.cxtools.net/default.aspx?nav=cxfrlb). > > If you want Windows executables... you would need to run py2exe under > the Windows version of Python (so that it has access to the proper DLLs > and such that are needed to run Python apps on Windows). Using VMWare to > host Windows is an obvious option, but I don't know if you'd consider > that to be running under Linux. Using Wine to host the Windows version > of Python is another possibility, but I have no idea how well it would > work. > > Jimmy > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id845&op=click > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |
From: Larry B. <lar...@we...> - 2005-11-17 18:25:42
|
You are going to be forced into having an instance of Windows somewhere close by so that you can actually test the .exe that gets generated. IMHO you should just build the .exe in that environment. In addition you will probably need to have an windows installer (Inno Setup?) to build a complete setup.exe for the application and that will require Windows as sell. Your best bet is VMWARE on Linux. -Larry Bates Pander wrote: > Hi all, > > To be precise, use py2exe to build Windows executables on a Linux > machine. preferably without the use of VMWare, Wine, etc. > > Regards, > > Pander > > On Thu, 2005-11-17 at 05:39 -0800, Jimmy Retzlaff wrote: > >>Pander wrote: >> >>>Does anyone have a instructions on how to use py2exe on Linux? >> >>I assume you want to run py2exe under Linux. Do you want the resulting >>executables to run on Linux or on Windows? >> >>If you want Linux executables then py2exe won't help. You might try >>cx_Freeze for that (http://www.cxtools.net/default.aspx?nav=cxfrlb). >> >>If you want Windows executables... you would need to run py2exe under >>the Windows version of Python (so that it has access to the proper DLLs >>and such that are needed to run Python apps on Windows). Using VMWare to >>host Windows is an obvious option, but I don't know if you'd consider >>that to be running under Linux. Using Wine to host the Windows version >>of Python is another possibility, but I have no idea how well it would >>work. >> >>Jimmy >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by the JBoss Inc. Get Certified Today >>Register for a JBoss Training Course. Free Certification Exam >>for All Training Attendees Through End of 2005. For more info visit: >>http://ads.osdn.com/?ad_idv28&alloc_id845&op=click >>_______________________________________________ >>Py2exe-users mailing list >>Py2...@li... >>https://lists.sourceforge.net/lists/listinfo/py2exe-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click |
From: David F. <da...@sj...> - 2005-11-18 09:41:18
|
Qemu is nice and open source, you can try that as an alternative to VMWARE Larry Bates wrote: >You are going to be forced into having an instance of Windows somewhere >close by so that you can actually test the .exe that gets generated. >IMHO you should just build the .exe in that environment. In addition >you will probably need to have an windows installer (Inno Setup?) to >build a complete setup.exe for the application and that will require >Windows as sell. Your best bet is VMWARE on Linux. > >-Larry Bates > > >Pander wrote: > > >>Hi all, >> >>To be precise, use py2exe to build Windows executables on a Linux >>machine. preferably without the use of VMWare, Wine, etc. >> >>Regards, >> >>Pander >> >>On Thu, 2005-11-17 at 05:39 -0800, Jimmy Retzlaff wrote: >> >> >> >>>Pander wrote: >>> >>> >>> >>>>Does anyone have a instructions on how to use py2exe on Linux? >>>> >>>> >>>I assume you want to run py2exe under Linux. Do you want the resulting >>>executables to run on Linux or on Windows? >>> >>>If you want Linux executables then py2exe won't help. You might try >>>cx_Freeze for that (http://www.cxtools.net/default.aspx?nav=cxfrlb). >>> >>>If you want Windows executables... you would need to run py2exe under >>>the Windows version of Python (so that it has access to the proper DLLs >>>and such that are needed to run Python apps on Windows). Using VMWare to >>>host Windows is an obvious option, but I don't know if you'd consider >>>that to be running under Linux. Using Wine to host the Windows version >>>of Python is another possibility, but I have no idea how well it would >>>work. >>> >>>Jimmy >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by the JBoss Inc. Get Certified Today >>>Register for a JBoss Training Course. Free Certification Exam >>>for All Training Attendees Through End of 2005. For more info visit: >>>http://ads.osdn.com/?ad_idv28&alloc_id845&op=click >>>_______________________________________________ >>>Py2exe-users mailing list >>>Py2...@li... >>>https://lists.sourceforge.net/lists/listinfo/py2exe-users >>> >>> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by the JBoss Inc. Get Certified Today >>Register for a JBoss Training Course. Free Certification Exam >>for All Training Attendees Through End of 2005. For more info visit: >>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click >> >> > > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. Get Certified Today >Register for a JBoss Training Course. Free Certification Exam >for All Training Attendees Through End of 2005. For more info visit: >http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click >_______________________________________________ >Py2exe-users mailing list >Py2...@li... >https://lists.sourceforge.net/lists/listinfo/py2exe-users > > > |