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


Groups > comp.lang.python > #15560

Re: easy_install doesn't install non-package *.py file

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <kwatch@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '(python': 0.05; 'dict': 0.09; 'setup.py': 0.09; 'to:addr:comp.lang.python': 0.09; 'files.': 0.09; 'subject:file': 0.13; 'cc:addr:python-list': 0.15; 'hartley': 0.16; 'installs': 0.16; 'subject:install': 0.16; 'subject:non': 0.16; 'subject:package': 0.16; 'wrote:': 0.18; 'setup.': 0.18; 'cc:no real name:2**0': 0.21; "aren't": 0.21; 'received:209.85.212.46': 0.23; 'received:mail- vw0-f46.google.com': 0.23; 'though.': 0.23; 'header:In-Reply- To:1': 0.23; 'specify': 0.24; 'cc:2**0': 0.25; 'sender:addr:gmail.com': 0.25; 'pass': 0.28; 'installing': 0.28; 'cc:addr:python.org': 0.29; 'message-id:@mail.gmail.com': 0.29; 'one)': 0.30; "skip:' 10": 0.30; 'nov': 0.31; 'pm,': 0.31; 'thu,': 0.32; 'there': 0.33; 'received:209.85.212': 0.34; 'test': 0.34; 'thank': 0.35; 'jonathan': 0.36; 'entry': 0.37; 'but': 0.37; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'either': 0.39; 'subject:: ': 0.39; 'files': 0.40; 'received:209': 0.40; 'user': 0.40; 'your': 0.61; '2011': 0.62; 'details,': 0.74
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jeaGqezq26oBHhlyejUzE38+nbm5gTWAYiczxqewfnE=; b=RzIZaxVxfcaXQipAPT8PKiPzXEmJt1tibfDgHzsjDYC7MKqA9eV9dwz8+ClnX50ad1 xMJqL6vvzQWEItpiqCkQUbzyq5wG+7jzkRJ0yhA22GBobssD9eQs6RMO7eGnP5aFeSmH X5ZLs6c6yO1NVfcBaH9Kd16xcHlQ7A0JqceFA=
MIME-Version 1.0
Sender kwatch@gmail.com
In-Reply-To <5611883.2927.1320916092038.JavaMail.geo-discussion-forums@yqni5>
References <mailman.2530.1320726768.27778.python-list@python.org> <5611883.2927.1320916092038.JavaMail.geo-discussion-forums@yqni5>
Date Fri, 11 Nov 2011 05:38:53 +0900
X-Google-Sender-Auth MtaAVFd4KbMpppADAeREoIwMA34
Subject Re: easy_install doesn't install non-package *.py file
From Makoto Kuwata <kwa@kuwata-lab.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2622.1320957535.27778.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1320957535 news.xs4all.nl 6842 [2001:888:2000:d::a6]:55071
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15560

Show key headers only | View raw


On Thu, Nov 10, 2011 at 6:08 PM, Jonathan Hartley <tartley@tartley.com> wrote:
> Hey. I don't know the details, but your setup.py needs to use either the 'package_data' or the 'data_files' entry in the dict you pass to setup. These can specify files you want included in the sdist which aren't package files.
>
> There are many complications with using them though. One of them in particular (I don't remember which one) installs the files you specify in a different place depending on whether the user is installing the sdist from local files (python setup.py install) or using pip, so be sure to test both ways.

'package_data' is the solution for my trouble.
Thank you very much, Jonathan.

--
regards,
makoto kuwata

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


Thread

easy_install doesn't install non-package *.py file Makoto Kuwata <kwa@kuwata-lab.com> - 2011-11-08 13:32 +0900
  Re: easy_install doesn't install non-package *.py file Jonathan Hartley <tartley@tartley.com> - 2011-11-10 01:08 -0800
  Re: easy_install doesn't install non-package *.py file Jonathan Hartley <tartley@tartley.com> - 2011-11-10 01:08 -0800
    Re: easy_install doesn't install non-package *.py file Makoto Kuwata <kwa@kuwata-lab.com> - 2011-11-11 05:38 +0900

csiph-web