Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73493

Re: How to distribute python console program

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <nicholas.cole@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'url:sourceforge': 0.03; 'rename': 0.07; '22,': 0.09; 'assuming': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; '3:51': 0.16; 'filename.': 0.16; 'subject:program': 0.16; 'unpack': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'wondering': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'aims': 0.31; "user's": 0.31; 'file': 0.32; 'run': 0.32; 'linux': 0.33; 'url:python': 0.33; 'running': 0.33; 'could': 0.34; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:org': 0.36; 'should': 0.36; 'application': 0.37; 'so,': 0.37; 'how': 0.40; 'even': 0.60; 'skip:y 20': 0.60; 'hope': 0.61; 'simply': 0.61; 'simple': 0.61; 'kind': 0.63; 'zip': 0.64; 'to:addr:gmail.com': 0.65; 'export': 0.74
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=83ulECLuDICohnxTfeuQ3afvZS3NbDSLHqx2UuToNRk=; b=i7MnIcZO7HfwsNlWQRwwp3QAOFnuo92UmYaJD7w9S1fRNMcvO7cBFap6p3pX+KviFY A9tjAuVi5aLX4XlEz4AZr/e9msYEn0aS4An0Wz7iq6L8OV/jll2XIySYJvN99hztGNZW aaOc8hiCOtPeow/Q4PxJW5SCBZjR/W4KD7Yqf3BExeGfBZtFGecAp2WRjf+PE1ZpPnnc 2FkKgQNHx7BwEuxVj8ksGsIc4bzD0uFSGgutkWiZWL8D00ooXita4jlcIVo2SdKjkIaj uANyemGyFWZGhxllDPceJ9AtSV/4qC0jlP781dqUfJGu/0s7b02vVz/HlUncWEPiLWyK RmLA==
MIME-Version 1.0
X-Received by 10.68.253.73 with SMTP id zy9mr19866744pbc.114.1403431102246; Sun, 22 Jun 2014 02:58:22 -0700 (PDT)
In-Reply-To <bc95879a-5f0b-4b79-bfc9-71a3d61fc224@googlegroups.com>
References <bc95879a-5f0b-4b79-bfc9-71a3d61fc224@googlegroups.com>
Date Sun, 22 Jun 2014 10:58:22 +0100
Subject Re: How to distribute python console program
From Nicholas Cole <nicholas.cole@gmail.com>
To Nicholas Cannon <nicholascannon1@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11184.1403431110.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1403431110 news.xs4all.nl 2901 [2001:888:2000:d::a6]:36841
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73493

Show key headers only | View raw


On Sun, Jun 22, 2014 at 3:51 AM, Nicholas Cannon
<nicholascannon1@gmail.com> wrote:
> I have a simple program that is ran in the console with 2 modules and i was wondering how i could like export it so i could give it to someone to use as like a utlitie in the console?

I'm assuming that the 'someone' you want to give it to has python
installed (if they are running any kind of linux or OS X they should
do).

If so, you can use something like

https://pypi.python.org/pypi/ncdistribute/

to make single zip file that contains your code and all its
dependencies.  There is no need to unpack the zip file - python can
run it without unpacking, so you simply put the your_utility_name.pyz
file somewhere in the user's path and it can be run easily.  You can
even rename it so that it doesn't have the .pyz filename.

If you want to send your application to someone who doesn't have
python installed, things are trickier.

http://cx-freeze.sourceforge.net

aims to help you do that kind of thing.

Hope that helps,

Nicholas

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to distribute python console program Nicholas Cannon <nicholascannon1@gmail.com> - 2014-06-21 19:51 -0700
  Re: How to distribute python console program Jurko Gospodnetić <jurko.gospodnetic@pke.hr> - 2014-06-22 11:56 +0200
  Re: How to distribute python console program Nicholas Cole <nicholas.cole@gmail.com> - 2014-06-22 10:58 +0100
  Re: How to distribute python console program Terry Reedy <tjreedy@udel.edu> - 2014-06-22 14:25 -0400

csiph-web