From: Arthur <ajs...@op...> - 2003-02-18 13:33:15
|
----- Original Message ----- From: "Bruce Sherwood" <bas...@un...> To: "Arthur" <ajs...@op...> Cc: "vpusers" <vis...@li...> Sent: Monday, February 17, 2003 11:25 PM Subject: Re: [Visualpython-users] History and Status? > Arthur, I just started to look at your materials and I have some naive > questions: > > I gather that this setup.py is for use on Windows only if one has the Visual > C compiler? The thing to understand is that distutils has a duel role. From the point of view of the developer/distributor it is a tool to build distributions. From the point of the of the enduser it *can* be used - when necessary - to install distributions. In terms of the Windows .exe it is purely a distributors tool. As long as the distributor has the tools to build - I use VC6 - the cvisual.pyd (or .dll) then the distutils with (the correct setup.py) is a tool to build a VPython.exe that will install on any Windows machine - quite elegantly, IMO - with a double click. The command to build the executable is "python setup.py bdist_wininst". A Windows executable is thereby created and placed in the "dist" directory of the build tree. that executable is distributable and will work for any normal Windows machine - with no need for that machine to have a compiler. Hope that is clear. Try it. Its cool. Art |