From: Kevin A. <al...@se...> - 2004-03-26 17:16:04
|
> From: Ruben Marquez > > Since I upgraded to py2exe 0.5.0 I had to update the > setup.py file that I use for one of my apps. I > decided to try bulding the sample setup.py, found in > the minimal sample directory, but it would not create > a minimal.exe. Now, I am no expert in py2exe, but I > was able to get a working setup.py created. This is > the code I used: > > from distutils.core import setup > import py2exe > > setup( name = "minimal", > console = [ > { > "script": "minimal.py", > } > ], > data_files = [(".", ["readme.txt", > "minimal.rsrc.py"])] > ) > > It works. I purpously build the app as a console app > because I wanted to see if there were any error > messages. Sure enough, I get the same error message > that I get on my other app: After checking with Thomas Heller, I've change the setup.py script to support py2exe 0.5 from distutils.core import setup import py2exe setup( name = "minimal", console = ["minimal.py"], data_files = [ (".", ["readme.txt", "minimal.rsrc.py"]) ] ) Thomas suggests looking at the py2exe examples for more elaborate builds. Perhaps someone can make suitable scripts for all the tools which we can include with release 0.8 (sometime after 0.7.3)? > debug.py:30: UserWarning: PyCrust has been renamed to > Py. Use 'from wx import py' > > Could anyone explain why this error and how to > eliminate it? Thanks. After trying a test with Ruben I decided to remove the PyCrust import support for wxPython 2.4.0.7 and earlier in debug.py. This seems to clear up the above warning message. PythonCard 0.7.2 and 0.7.3 will still work with wxPython 2.4.0.7, you just won't be able to use the shell. ka |