Vince Teachout wrote:
> Ed Leafe wrote:
>> On Apr 25, 2007, at 1:34 PM, [EMAIL PROTECTED] wrote:
>>
>>
>>> Try pyinstaller instead and you'll be able to create executables
>>> for more than one platform.
> Miguel, I'll try pyinstaller, too. Thanks.
>
>> Bear in mind, though, that you can't make a Linux executable from a
>> Windows machine. Nor can you make a RedHat Linux executable from an
>> Ubuntu machine. Nor can you make a RedHat 7 executable from a RedHat
>> 9 installation.
>>
>
> Ed, here's a sample of my ignorance. I thought Linux just ran any file
> (assuming it was valid) by changing the permissions to be executable?
> If I created a dabo app using the appwizard, I'd just be able to take
> the folder, dump it into Lunux, click on the app.py, and it would run
> (assuming a proper Python install). Correct?
Yes, although you aren't talking about classic executable binaries here,
just running Python scripts. You can take your Dabo app, which is just a
collection of .py files, and put it on any of ("windows", "os x",
"linux") and expect it to run by issuing "python mydaboapp.py" at the
command line, assuming all the dependencies (python, wx, mysqldb, etc.
etc.) are installed. On OS X and Linux, if there's a shebang line
(#!/usr/bin/env python), you can further expect it to run by simply
issuing "./mydaboapp.py".
But binary executables are different. Linux uses a format called ELF,
Windows uses EXE, and Mac actually doesn't need a binary format, you
just make an app bundle that is actually a folder that contains all the
application's resources.
Packaging for a given platform is technically outside the scope of Dabo,
however I envision a 'build' button in the Dabo IDE project manager that
will build an appropriate executable application for the given platform
(the platform the Dabo IDE is being run on at the time).
> Does Pyinstaller do the same thing for Linux that Py2exe does for
> Windows? Create a single executable file? And if so, what extension
> does it use for Linux?
PyInstaller aims to do for all platforms what py2exe does for Windows,
by wrapping the platform-specific projects py2exe for Win, cx_freeze for
Lin, and BundleBuilder for Mac.
Linux binary executables typically have no file extension, but they
could if you wanted them to.
--
pkm ~ http://paulmcnett.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]