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


Groups > comp.lang.python > #74803

Re: Pip doesn't install my scripts

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <kwpolska@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'scripts': 0.03; 'url:pypi': 0.03; 'encoding': 0.05; 'installed.': 0.07; 'pypi': 0.07; 'utf-8': 0.07; 'here?': 0.09; 'i\xe2\x80\x99ve': 0.09; 'setup.py': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'errors:': 0.16; 'mechanism.': 0.16; 'non-ascii': 0.16; "package's": 0.16; 'scripts.': 0.16; 'setuptools,': 0.16; 'subject:install': 0.16; 'syntaxerror:': 0.16; 'url:peps': 0.16; 'sat,': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'trying': 0.19; 'file,': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'copied': 0.24; 'directory.': 0.24; 'url:dev': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'character': 0.29; 'points': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'directory,': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; 'sense': 0.34; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'installing': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'entry': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'should': 0.36; 'wrong': 0.37; 'problems': 0.38; 'stable': 0.38; 'that,': 0.38; 'url:mail': 0.40; 'most': 0.60; 'from:charset:utf-8': 0.61; 'real': 0.63; 'face': 0.64; 'zip': 0.64; 'skip:\xe2 10': 0.65; 'to:addr:gmail.com': 0.65; 'details': 0.65; 'here': 0.66; 'importantly,': 0.68; '8bit%:43': 0.74; 'jul': 0.74; '9:19': 0.84; 'you\xe2\x80\x99re': 0.91; 'package:': 0.93
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:content-transfer-encoding; bh=CKRNlM0l1JyAl62B++QpQGQrcJLgpBn7QNMKP9ZtcTY=; b=YuN4TMBk3Y6ncvxUlV0CJDovjCF5Xr+4c/EMjSE1wYVicMUQyeRPyaLXHaP/TNaRoE OTeGYJtM0PpgaxaBefQohIXl2dKsURso5HFUr56gplttI7/wPYmKnPouZ36+t/9aLFzz 2bDhUN/gs3vXeveeYEW30rFzRbYKlDpuPml1OINQxoJfG/Sl3vfuz6b61X7P0Tsh5ovd MLmJb6jdn2PV6NEbL3v/4OQLOIALmAXGZveTiFjoeQTamWJCCJrPoQFm57yk/VmO92Im vd7+xHiNYkhCeF7UGfswjNGvp4tq7pQ5t0L5V5zD+PoSL+YNbuHPFXjhRlZd3WBnImh5 gXRw==
MIME-Version 1.0
X-Received by 10.50.137.73 with SMTP id qg9mr48394333igb.19.1405763059863; Sat, 19 Jul 2014 02:44:19 -0700 (PDT)
In-Reply-To <CAFEUn8ZCUNsn8obwZjop0M=RmmPBTjJYZRcMz+gjx2-Rh+oHtA@mail.gmail.com>
References <CAFEUn8ZCUNsn8obwZjop0M=RmmPBTjJYZRcMz+gjx2-Rh+oHtA@mail.gmail.com>
Date Sat, 19 Jul 2014 11:44:19 +0200
Subject Re: Pip doesn't install my scripts
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
To Yaşar Arabacı <yasar11732@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc 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.12038.1405763068.18130.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1405763068 news.xs4all.nl 2928 [2001:888:2000:d::a6]:44897
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74803

Show key headers only | View raw


On Sat, Jul 19, 2014 at 9:19 AM, Yaşar Arabacı <yasar11732@gmail.com> wrote:
> Hi,
>
> I am trying to package my file, but I am having problems with
> installing my Scripts. Here is my package:
> https://github.com/yasar11732/tklsystem
>
> Here is my package's PyPi page: https://pypi.python.org/pypi/TkLsystem
>
> The problem I face is that, when I run `python setup.py install` from
> my development directory, I see that script file is installed.
> However, if I run `pip install TkLsystem`, my script file is not
> copied to Scripts directory.
>
> What am I doing wrong here?
>
> --
> http://ysar.net/
> --
> https://mail.python.org/mailman/listinfo/python-list

Tons of things are wrong.

* SyntaxError: Non-ASCII character '\xc5' in file lsystem/__init__.py
on line 6, but no encoding declared; see
http://python.org/dev/peps/pep-0263/ for details
* you should not import your package in setup.py
* you are python 3-only for no real reason at all
* the zip on PyPI is for version 0.1.3.  It ignores the version 0.1-5,
because of the dash, which should not be used in names of stable
software
* and, most importantly, you’re doing things using ancient methods.
Upgrade your setup.py to use setuptools, and its entry points
mechanism.

I’ve sent a PR to fix all of your errors:
https://github.com/yasar11732/tklsystem/pull/1

-- 
Chris “Kwpolska” Warrick <http://chriswarrick.com/>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense

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


Thread

Re: Pip doesn't install my scripts Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-19 11:44 +0200

csiph-web