How do I use cx_freeze?

后端 未结 5 944
心在旅途
心在旅途 2020-12-07 16:43

I\'ve created my setup.py file as instructed but I don\'t actually.. understand what to do next. Typing \"python setup.py build\" into the command line just gets a syntax er

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 17:18

    You can change the setup.py code to this:

        from cx_freeze import setup, Executable
        setup( name = "foo",
               version = "1.1",
               description = "Description of the app here.",
               executables = [Executable("foo.py")]
             )
    

    I am sure it will work. I have tried it on both windows 7 as well as ubuntu 12.04

提交回复
热议问题