Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'subject:not': 0.03; '21,': 0.07; 'distributing': 0.07; '22,': 0.09; 'deploy': 0.09; 'run,': 0.09; 'python': 0.11; 'cause.': 0.16; 'foo,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'programmer,': 0.16; 'subject:python3': 0.16; 'tkinter.': 0.16; 'java,': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'written': 0.21; 'separate': 0.22; 'install': 0.23; '(such': 0.24; 'package.': 0.24; 'helpful': 0.24; 'java': 0.24; 'mon,': 0.24; "i've": 0.25; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'point': 0.28; 'rest': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '(which': 0.31; "d'aprano": 0.31; 'steven': 0.31; "they'll": 0.31; 'file': 0.32; 'probably': 0.32; 'run': 0.32; "i'd": 0.34; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'ubuntu': 0.36; 'error.': 0.37; 'others.': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'subject:" ': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'ensure': 0.60; 'even': 0.60; 'easy': 0.60; 'tell': 0.60; 'mentioned': 0.61; 'providing': 0.61; 'simply': 0.61; "you're": 0.61; 'name': 0.63; 'worth': 0.66; 'to,': 0.72; '"apt- get': 0.91; 'package:': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=jCnwbiBP2xrZd0+3r0ZJmQtJNcmhw0W/2Bf0Ms47hIs=; b=Uv8qGS/FDG+zNB4AYE3xsqiHdqpA+WoBICOLm/t8/hqGnF0gRWq/WPFb+ypIv74M60 8vXWDN2CvbbKTc3aZg2x+51CDJJ5nRN8akaohGsVyJEiZr4M7UiRhRSM2UQIbN9PMNCz MO2Rbo/fZN6eliGi3mLdjEMAdq/MbLMVtuDAxaNdUFk+FPWyHDTL1hGtIphwpUFnA+Gk HQcOBItPNeBZuwXmEir71anhoSeN1lydf4H1nxUVgerHGdHXSHUosvYyHQb2FxqH19bn 6OlCt7fhl+WXgAkfowSok2fmtjsc1Avmv9XECv2YM7DahSzyUpW9PDgiGr312YVD5aRc Quew== MIME-Version: 1.0 X-Received: by 10.52.97.8 with SMTP id dw8mr16290952vdb.91.1366636022561; Mon, 22 Apr 2013 06:07:02 -0700 (PDT) In-Reply-To: <26d6d300-9f1b-4640-bbc6-d9c653bb6ad4@ph9g2000pbb.googlegroups.com> References: <9ba1d90b-1a69-4e5a-8a9e-574009b0bdf3@fs2g2000pbd.googlegroups.com> <5174b515$0$29872$c3e8da3$5496439d@news.astraweb.com> <26d6d300-9f1b-4640-bbc6-d9c653bb6ad4@ph9g2000pbb.googlegroups.com> Date: Mon, 22 Apr 2013 23:07:02 +1000 Subject: Re: Ubuntu package "python3" does not include tkinter From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366636513 news.xs4all.nl 2188 [2001:888:2000:d::a6]:53925 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44064 On Mon, Apr 22, 2013 at 9:18 PM, lcrocker wrote: > On Apr 21, 11:36 pm, Rui Maciel wrote: >> Steven D'Aprano wrote: >> > It's only easy to install a package on Ubuntu if you know that you have >> > to, and can somehow work out the name of the package. >> >> No one actually has to install tkinter. That's the whole point of providing >> it as a separate package: only those who want to use it have to install it. >> The rest of us don't. > > I'm a programmer, I installed Tkinter, and use it. I'd like to deploy > programs > written with it to others. **Those** people know nothing about it, > and > **shouldn't have to**. I've given them a program in Python, they have > Python, > but it doesn't run, and doesn't give them a helpful error. They'll > probably > just blame me and move on. Not every Python user is a programmer. If > I write > a program in Java, any user with Java installed can run it. As it > stands, > that's no true for Python. That's not good PR for the cause. If you're deploying only to Debian-based Linuxes (such as the Ubuntu you mentioned originally), then it may be worth distributing your program as a .deb file and declaring all the appropriate dependencies (which would then include python3-tk). Alternatively, just put an "apt-get install python3-tk" into your install script (which is what I do for internal deployments - if you need package XYZ for program Foo, inst-foo will install XYZ), or simply tell people they need to install it. How do you make sure they even have a Python 3.x? Whatever you do to ensure that, just add python3-tk to it. ChrisA