473,669 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Distributing python apps

Hi,

I'm creating a set of command-line tools using Python. These tools
manage resources for a game I'm working on. However, many people that
will be using these tools will not want to install Python on their
machines. This would be a very tedious process (for first time users
of my tools).

Ideally, I would like for someone to be able to use my tools without
having to install Python. For example, if I could put python.exe in a
hidden folder somewhere in my tools directory, and make a batch file
that they run to start the tool, python could be executed from a
relative path in my tools directory. Is this possible? What is an
ideal way of distributing python apps? I would prefer a transparent
and user-friendly approach.

Thanks for any tips.

Jul 9 '07 #1
4 1354
Robert Dailey schrieb:
Ideally, I would like for someone to be able to use my tools without
having to install Python.
What about http://www.py2exe.org/ ?

"py2exe is a Python Distutils extension which converts Python scripts
into executable Windows programs, able to run without requiring a Python
installation."

--
Thomas Wittek
http://gedankenkonstrukt.de/
Jabber: st*********@jab ber.i-pobox.net
Jul 9 '07 #2
On Jul 9, 2:59 pm, Robert Dailey <rcdai...@gmail .comwrote:
Hi,

I'm creating a set of command-line tools using Python. These tools
manage resources for a game I'm working on. However, many people that
will be using these tools will not want to install Python on their
machines. This would be a very tedious process (for first time users
of my tools).

Ideally, I would like for someone to be able to use my tools without
having to install Python. For example, if I could put python.exe in a
hidden folder somewhere in my tools directory, and make a batch file
that they run to start the tool, python could be executed from a
relative path in my tools directory. Is this possible? What is an
ideal way of distributing python apps? I would prefer a transparent
and user-friendly approach.

Thanks for any tips.
The typical approach is using py2exe:

http://www.py2exe.org/
I use it in conjunction with Inno Setup.

http://www.jrsoftware.org/isinfo.php
GUI2Exe is a GUI interface to py2exe:

http://xoomer.alice.it/infinity77/eng/GUI2Exe.html

Mike

Jul 9 '07 #3
Thanks a ton guys. You both gave me the exact answers I was looking
for.

Jul 9 '07 #4
Robert Dailey wrote:
Thanks a ton guys. You both gave me the exact answers I was looking
for.

Uhm, late entry here, but you might want to consider PyInstaller
<http://pyinstaller.pyt hon-hosting.com/>. Not sure if the project is
still alive as I see no mention of Python 2.5 on their site but you
never know.

/W
Jul 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2052
by: Alexander Eisenhuth | last post by:
Hallo alltogether, under windows, the py2exe is first choice, but has anybody done it under Linux ? My first try with Installer http://www.mcmillan-inc.com/install5_intro.html was not sucessfull. Any hints or help is welcome. Alexander
14
1873
by: Phillip Mills | last post by:
I've learned enough of the Python language to be mildly dangerous and have used it in a few personal projects. All my development of commercial (or production) products over the past dozen years have been done with C++ or Java. For a program I'm planning -- to begin during the summer -- having an interpreter as part of the application would be very desirable to allow sophisticated users to provide their own extensions. Java would be...
6
1824
by: Jason | last post by:
A non-python programming friend of mine has said that any programs made with Python must be distributed with, or an alternative link, to the source of the program. Is this true?
2
2663
by: RickMuller | last post by:
I really appreciate the ease that the distutils make distributing Python modules. However, I have a question about using them to distribute non-Python (i.e. text) data files that support Python modules. Currently when I have data of this type, I parse it into python objects and make a python module from it. In other words, given a data file like % cat grocery_list.txt eggs spam
2
1405
by: Krish | last post by:
hi all, i'm wondering if there are any best practices for distributing apps which require the .net framework to run. i've read about using the .net bootstrapper which will install the .net framework as a step in the regular apps' installation if the user doesn't have the framework. however, when i include the dotnetfx redistributable the size of the download is about 23mb as opposed to 300k for my app.
11
3998
by: Tina I | last post by:
Hi list, Is there a preferred way to distribute programs that depends on third party modules like PyQt, Beautifulsoup etc? I have used setuptools and just having the setup script check for the existence of the required modules. If they're not found I have it exit with a message that it need this or that installed. But this is not very convenient for the end user and I have got a few complaints about it. Am I missing something in...
1
1410
by: PurpleServerMonkey | last post by:
Working on a rather large open source python application that I want to release for Linux and BSD and was wondering what methods others are using to distribute large and complex applications. Setuptools and friends seem to be focused on distributing modules, I'm at the other end of the scale where I want to distribute an entire application so that an Administrator can run a single install and have a fully operational product. A key...
9
1502
by: eliben | last post by:
Hello, I'm getting into Python now after years of Perl, and as part of my research I must understand how to do some common tasks I need. I have a bunch of Windows PCs at work to which I want to distribute an application I've developed on my PC. All these PCs have Python 2.5 installed. If my application contains only code I've developed, I simply zip its
5
2604
by: Joe Strout | last post by:
We have a client who's paranoid about distributing the Python source to his commercial app. Is there some way I can distribute and use just the .pyc files, so as to not give away the source? Thanks, - Joe
0
8465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8895
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8809
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8588
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4386
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.