advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
How often do you build Python executables? Did this article meet your needs for doing so? Do you think it will save you time? Why or why not? Would you rather see such a utility with a visual interface or is the command-line version described here sufficient? Let us know in the Open Source discussion forum.
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Create Python Executables Automatically

The py2exe project gave Python authors a way to create executable files, but using it can be time-consuming; particularly when you need to create executables repeatedly. Here's how to automate the process. 


advertisement
his article shows you how to automate the task of creating Python executables via py2exe using Python itself. I call the Python file containing the code makeExe.py. This technique requires only one file, makeExe.py; it creates all other necessary files at run-time. First, a short review on the process of creating a Python executable using py2exe.


Creating a Python Executable
Editor's Note: The author recently submitted another method for creating Python executables using a batch file, along with an explanation of how to use it. This new method has been added as the last page of this article, at his request..

The following four steps describe the process required to create a Python executable.

It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?



advertisement