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


Groups > comp.lang.python > #15519

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'suppose': 0.05; 'exec': 0.07; 'terry': 0.07; 'python': 0.08; 'command.': 0.09; 'setup.py': 0.09; 'am,': 0.12; 'subject:file': 0.13; 'language,': 0.15; 'egg': 0.16; 'file).': 0.16; 'non-python': 0.16; 'reedy': 0.16; 'subject:install': 0.16; 'subject:non': 0.16; 'subject:package': 0.16; 'suffix': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'template': 0.19; "doesn't": 0.23; 'received:209.85.212.46': 0.23; 'received :mail-vw0-f46.google.com': 0.23; 'header:In-Reply-To:1': 0.23; 'sender:addr:gmail.com': 0.25; 'code': 0.25; 'message- id:@mail.gmail.com': 0.29; 'module': 0.30; "skip:' 10": 0.30; 'nov': 0.31; 'pm,': 0.31; 'to:addr:python-list': 0.32; 'it.': 0.33; 'received:209.85.212': 0.34; 'idea': 0.34; 'trouble': 0.35; 'data,': 0.35; 'question': 0.35; 'problem.': 0.36; 'file': 0.36; 'example,': 0.36; 'but': 0.37; 'could': 0.38; 'run': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'should': 0.39; 'either': 0.39; 'why': 0.39; 'got': 0.39; 'subject:: ': 0.39; 'change': 0.39; 'to:addr:python.org': 0.39; 'data': 0.40; 'files': 0.40; 'received:209': 0.40; 'according': 0.60; 'your': 0.61; '2011': 0.62; '"how': 0.80; 'easy_install': 0.84
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:content-type :content-transfer-encoding; bh=iSMK7oPD2Uq30kpoD7p54cLVjMVHJGJdOh40L48RE6Y=; b=AmXdPGCfdsweCsNztaLHYwympBlCd6a6jbf6EJ+jVNwbIQ9phcExus4jM4dhwEXcfX cFnQ0Mr2oki91L2xtzRE/iwt2xvRK5RLLJ84GOw3Rk28xgxDMCIlU8yaJGpwzkOl5IwH mxv0k4e0ZqtpG5VDZO7bdx6+nRvZw5+NYWKIU=
MIME-Version 1.0
Sender kwatch@gmail.com
In-Reply-To <j9bup0$ppo$1@dough.gmane.org>
References <CAFTm5Rt6gdYH6KU2=iZjQ94N1eL7EkhGVCBJZWPLyroUmj2BuA@mail.gmail.com> <j9bup0$ppo$1@dough.gmane.org>
Date Thu, 10 Nov 2011 09:58:15 +0900
X-Google-Sender-Auth 8nlyP7ouWPXuY29_YIjxWRxq7p8
Subject Re: easy_install doesn't install non-package *.py file
From Makoto Kuwata <kwa@kuwata-lab.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
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.2579.1320886699.27778.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1320886699 news.xs4all.nl 6890 [2001:888:2000:d::a6]:33213
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15519

Show key headers only | View raw


On Wed, Nov 9, 2011 at 4:09 AM, Terry Reedy <tjreedy@udel.edu> wrote:
> On 11/7/2011 11:32 PM, Makoto Kuwata wrote:
>>
>> I got trouble about easy_install command.
>>
>> My package:
>>
>>   README.rst
>>   setup.py
>>   foobar/
>>   foobar/__init__.py
>>   foobar/data/
>>   foobar/data/template.py
>>
>> In the above example, 'foobar/data/template.py' is just a
>> template data file (= not a python module file).
>
> Then why is it .py? If it is just data, use .txt. If .py, it should be
> python code run either directly or imported, though I suppose you could exec
> it. (I have no idea how renaming would affect your problem.)
>

I want to use template names according to language,
such as template.py, template.html, template.rst, template.js, and so on.

My question is "how to include non-python files into egg file?"
I may change file name suffix from '.py' to '.py.template',
but it doesn't solve my problem.

--
regards,
makoto kuwata

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


Thread

Re: easy_install doesn't install non-package *.py file Makoto Kuwata <kwa@kuwata-lab.com> - 2011-11-10 09:58 +0900

csiph-web