Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Distributing a Python program hell (http://www.velocityreviews.com/forums/t959362-distributing-a-python-program-hell.html)

John Nagle 04-03-2013 07:41 PM

Distributing a Python program hell
 
I'm struggling with radio hams who are trying to get my
antique Teletype program running. I hate having to write
instructions like this:

Installation instructions (Windows):

Download and install Python 2.7 (32-bit) if not already installed.
(Python 2.6 or 2.7 is required; "pyserial" will not work correctly on
older versions, and "feedparser" is not supported in 3.x versions.)

Install the Python module "setuptools" from the Python Package Index.
(Needed by other installers. Has a Windows installer.)

Install the Python module "feedparser" from Google Code.
(Unpack ZiP file, run "setup.py install")

Install the Python module "pyserial" from SourceForge.
(Windows installer, but 32-bit only)

Install the Python module "pygooglevoice" from Google Code.
(Requires 7Zip to unpack the .tar.gz file. Then "setup.py install")

Download "BaudotRSS" from SourceForge. (ZIP file, put in your
chosen directory for this program.)

Run: python baudotrss.py --help

I'm thinking of switching to Go.

John Nagle

Ian Kelly 04-03-2013 07:50 PM

Re: Distributing a Python program hell
 
On Wed, Apr 3, 2013 at 1:41 PM, John Nagle <nagle@animats.com> wrote:
> I'm struggling with radio hams who are trying to get my
> antique Teletype program running. I hate having to write
> instructions like this:
>
> Installation instructions (Windows):


You should check out pyInstaller or py2exe or cx_Freeze.

Neil Cerutti 04-03-2013 07:54 PM

Re: Distributing a Python program hell
 
On 2013-04-03, John Nagle <nagle@animats.com> wrote:
> I'm struggling with radio hams who are trying to get my antique
> Teletype program running. I hate having to write instructions
> like this:
>
> Installation instructions (Windows):
>
> Download and install Python 2.7 (32-bit) if not already installed.
> (Python 2.6 or 2.7 is required; "pyserial" will not work correctly on
> older versions, and "feedparser" is not supported in 3.x versions.)
>
> Install the Python module "setuptools" from the Python Package Index.
> (Needed by other installers. Has a Windows installer.)
>
> Install the Python module "feedparser" from Google Code.
> (Unpack ZiP file, run "setup.py install")
>
> Install the Python module "pyserial" from SourceForge.
> (Windows installer, but 32-bit only)
>
> Install the Python module "pygooglevoice" from Google Code.
> (Requires 7Zip to unpack the .tar.gz file. Then "setup.py install")
>
> Download "BaudotRSS" from SourceForge. (ZIP file, put in your
> chosen directory for this program.)
>
> Run: python baudotrss.py --help
>
> I'm thinking of switching to Go.


Python programs can be distributed as binary-like packages, e.g.,
www.py2exe.org.

--
Neil Cerutti

Grant Edwards 04-03-2013 08:10 PM

Re: Distributing a Python program hell
 
On 2013-04-03, Neil Cerutti <neilc@norwich.edu> wrote:
> On 2013-04-03, John Nagle <nagle@animats.com> wrote:
>
>> I'm struggling with radio hams who are trying to get my antique
>> Teletype program running. I hate having to write instructions
>> like this:
>>
>> [...]

>
> Python programs can be distributed as binary-like packages, e.g.,
> www.py2exe.org.


I'd second the recommendation for for py2exe. It's been a couple
years since I used it, but for 6-7 years before that I used it
regularly to distribute about a half-dozen different wxPython apps to
Windows users, and it worked very nicely.

It sometimes requires some effort to get the configuration tweaked
right and then adjusted so the result works on a variety of Windows
versions, but in the end it always worked great.

I usually used one of the various free "self-installer generators" to
bundle up the .exe file(s) produced by py2exe along with whatever else
was needed to go with them and make them simple to install. [I've
forgotten which ones I used, but they all do basically the same
thing.]

I did all my development on Linux. When I boot over to Windows (on a
VM, generally) I had Cygwin installed and just ran a "make" to do all
the executable creation and bundling via command-line calls to py2exe
and self-installer utilities.

--
Grant Edwards grant.b.edwards Yow! It's a hole all the
at way to downtown Burbank!
gmail.com

rh 04-04-2013 02:59 AM

Re: Distributing a Python program hell
 
On Wed, 03 Apr 2013 12:41:25 -0700
John Nagle <nagle@animats.com> wrote:

> I'm struggling with radio hams who are trying to get my
> antique Teletype program running. I hate having to write
> instructions like this:


Can you package it and make it available via pip?
I only know linux so maybe pip doesn't run on windows??

If you packaged via pip then they would only have to do:

pip install antique-teletype


>
> Installation instructions (Windows):
>
> Download and install Python 2.7 (32-bit) if not already installed.
> (Python 2.6 or 2.7 is required; "pyserial" will not work correctly
> on older versions, and "feedparser" is not supported in 3.x versions.)
>
> Install the Python module "setuptools" from the Python Package
> Index. (Needed by other installers. Has a Windows installer.)
>
> Install the Python module "feedparser" from Google Code.
> (Unpack ZiP file, run "setup.py install")
>
> Install the Python module "pyserial" from SourceForge.
> (Windows installer, but 32-bit only)
>
> Install the Python module "pygooglevoice" from Google Code.
> (Requires 7Zip to unpack the .tar.gz file. Then "setup.py install")
>
> Download "BaudotRSS" from SourceForge. (ZIP file, put in your
> chosen directory for this program.)
>
> Run: python baudotrss.py --help
>
> I'm thinking of switching to Go.
>
> John Nagle



--




All times are GMT. The time now is 09:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.