#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    2
    Rep Power
    0

    a py2exe question


    hey all
    Is there a way to compile all files to 1 .exe file, so you dont need to have the .zip file and all? (compile all to 1.exe file)
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    The simple answer is No, because Python needs several DLLs to run, as well as the zip with the .pyc files.

    However there is a utility called 'freeze' in the source distribution that converts .pyc files into C data tables so that they can be compiled into .obj files. You would need to recompile Python from source into a single exe, changing the DLLs to static libraries that can be linked in too. So it is possible, but would be a LOT of work.

    If you are concerned about distributing your program it is much better to use an installer such as Inno Setup which will package all your files into a self extracting exe.

    Dave - The Developers' Coach
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    2
    Rep Power
    0
    Thanks DevCoach
    Il take a look at it

IMN logo majestic logo threadwatch logo seochat tools logo