Python:use Freeze to compile executables for Unix systems.

来源:互联网 发布:淘宝好做的产品 编辑:程序博客网 时间:2024/06/01 09:39

How to Use

Create a Python program, "hello.py"

   1 print "Hello, World!"

Then find freeze.py on your system, and invoke it in a directory that you don't mind filling up with .c files:

$ python freeze.py hello.py

Then run make:

$ make

...and you should end up with the executable, hello!

$ ./hello
Hello, world!