create executable package with source

This is the place for queries that don't fit in any of the other categories.

create executable package with source

Postby Kebap » Wed Oct 09, 2013 2:22 pm

Hi, I wonder how I can pass around my latest code to people who don't know/have python, for example on Windows. Also I want the code to be in source code, so it could be read/adjusted. So I think a good result would be to have maybe a "python.exe", a "myscript.py" and a "myscript.bat" who will do something like "python.exe -run myscript.py". However, Python needs to be installed, or is there a stand-alone version available? How would using libraries work?
Learn: How To Ask Questions The Smart Way
Join the #python-forum IRC channel on irc.freenode.net and chat with uns directly!
Kebap
 
Posts: 282
Joined: Thu Apr 04, 2013 1:17 pm
Location: Germany, Europe

Re: create executable package with source

Postby metulburr » Wed Oct 09, 2013 3:17 pm

py2exe or cx_freeze should be what you are looking for. I haven't done this in awhile so i pretty much forgot the process, and the main script
New Users, Read This
version Python 3.3.2 and 2.7.5, tkinter 8.5, pyqt 4.8.4, pygame 1.9.2 pre
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
User avatar
metulburr
 
Posts: 1103
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: create executable package with source

Postby Kebap » Thu Oct 10, 2013 11:38 am

py2exe seems interesting. They offer an option to include source coude modules, it seems. Will look into this, thanks! :mrgreen:
Learn: How To Ask Questions The Smart Way
Join the #python-forum IRC channel on irc.freenode.net and chat with uns directly!
Kebap
 
Posts: 282
Joined: Thu Apr 04, 2013 1:17 pm
Location: Germany, Europe


Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron