1

considering another stackoverflow question that was posted at 2009 and tools like py2exe that haven't been updated since 2008, is it possible ?

I am creating an application that saves and retrieves data from an sqlite db and I want to distribute it to my colleagues without having them to install python libraries and execute .py files. The application uses tkinter as a GUI library.

Is that possible in 2013 ?

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685
Radolino
  • 1,834
  • 4
  • 26
  • 48
  • See http://stackoverflow.com/questions/14165398/a-good-python-to-exe-compiler – Frank Schmitt May 13 '13 at 10:26
  • I have read those ones, I am interested in cross-platform deployment. It's not about commercial applications but for ones that I will use personally, like a task manager. Also, as I said py2exe has to be updated since 2008. – Radolino May 13 '13 at 10:35

1 Answers1

7

Yes, it is possible.

You may want to use the tool called cx_Freeze, it creates an executable from a python3 application (including all the libraries it uses), and it does this cross-platform.

The only thing you need to know is that in order to create, let's say a windows executable, you must run cx_Freeze in windows. (same goes for MAC, linux, etc..)

You can read here about the usage of the script.

Good Luck!

Dan Barzilay
  • 4,974
  • 5
  • 27
  • 39
  • where do I find it and what about depending files that need to be imported ? – Radolino May 13 '13 at 10:42
  • the word `cx_Freeze` in my answer is a link, just click it ;). you don't need to import any other files, cx_Freeze knows what it needs and how to get it. if you see it doesn't include some module you need you can run it with the `–include-modules` argument and specify there what modules you want. as my answer says it's all written in the documentation which I also linked above. (click the word `here`). – Dan Barzilay May 13 '13 at 10:46
  • thank God I know what a link is :) the download page of cxfreeze has windows msi's and rpms. I dismissed the "download source" link. The "documentation" you are referring to is a page with wildcards ! – Radolino May 13 '13 at 10:59
  • @RobertoDelgazzo Sorry but i don't understand your problem, can you explain it again? – Dan Barzilay May 14 '13 at 05:56