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


Groups > comp.lang.python > #15475

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

From Terry Reedy <tjreedy@udel.edu>
Subject Re: easy_install doesn't install non-package *.py file
Date 2011-11-08 14:09 -0500
References <CAFTm5Rt6gdYH6KU2=iZjQ94N1eL7EkhGVCBJZWPLyroUmj2BuA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2549.1320779372.27778.python-list@python.org> (permalink)

Show all headers | View raw


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.)

> (notice that 'foobar/data/__init__.py' doesn't exist.)

I did, and no, I do not know the answer to your question.

-- 
Terry Jan Reedy

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


Thread

Re: easy_install doesn't install non-package *.py file Terry Reedy <tjreedy@udel.edu> - 2011-11-08 14:09 -0500

csiph-web